[FFmpeg-devel] [PATCH] avfilter/transform: add av_warn_unused_result to avfilter_transform

Ganesh Ajjanagadde gajjanagadde at gmail.com
Thu Oct 15 23:27:44 CEST 2015


This adds av_warn_unused_result to avfilter_transform to trigger
warnings for non-checked return codes, currently none.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
 libavfilter/transform.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/transform.h b/libavfilter/transform.h
index 07436bf..b9fa590 100644
--- a/libavfilter/transform.h
+++ b/libavfilter/transform.h
@@ -118,6 +118,7 @@ void avfilter_mul_matrix(const float *m1, float scalar, float *result);
  * @param fill        edge fill method
  * @return negative on error
  */
+av_warn_unused_result
 int avfilter_transform(const uint8_t *src, uint8_t *dst,
                         int src_stride, int dst_stride,
                         int width, int height, const float *matrix,
-- 
2.6.1



More information about the ffmpeg-devel mailing list