[FFmpeg-cvslog] swscale/swscale: add av_warn_unused_result to sws_init_context

Ganesh Ajjanagadde git at videolan.org
Fri Oct 16 23:24:20 CEST 2015


ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Thu Oct 15 21:44:22 2015 -0400| [cd8a0a9a9a9ea501367e7f1d17e70cde62e4c746] | committer: Ganesh Ajjanagadde

swscale/swscale: add av_warn_unused_result to sws_init_context

This should not trigger any warnings; but adds robustness.

Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cd8a0a9a9a9ea501367e7f1d17e70cde62e4c746
---

 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);
 
 /**



More information about the ffmpeg-cvslog mailing list