[FFmpeg-devel] [PATCH 2/2] swscale/swscale: add av_warn_unused_result to sws_init_context

Ganesh Ajjanagadde gajjanagadde at gmail.com
Fri Oct 16 03:46:28 CEST 2015


This should not trigger any warnings; but adds robustness.

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

diff --git a/libswscale/swscale.h b/libswscale/swscale.h
index ff3f630..da9dd2e 100644
--- a/libswscale/swscale.h
+++ b/libswscale/swscale.h
@@ -150,6 +150,7 @@ struct SwsContext *sws_alloc_context(void);
  * @return zero or positive value on success, a negative value on
  * error
  */
+av_warn_unused_result
 int sws_init_context(struct SwsContext *sws_context, SwsFilter *srcFilter, SwsFilter *dstFilter);
 
 /**
-- 
2.6.1



More information about the ffmpeg-devel mailing list