From: Ganesh Ajjanagadde Date: Fri, 16 Oct 2015 01:44:22 +0000 (-0400) Subject: swscale/swscale: add av_warn_unused_result to sws_init_context X-Git-Tag: android-x86-7.1-r1~8476 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=cd8a0a9a9a9ea501367e7f1d17e70cde62e4c746;p=android-x86%2Fexternal-ffmpeg.git swscale/swscale: add av_warn_unused_result to sws_init_context This should not trigger any warnings; but adds robustness. Reviewed-by: Michael Niedermayer Signed-off-by: Ganesh Ajjanagadde --- diff --git a/libswscale/swscale.h b/libswscale/swscale.h index ff3f630ec1..da9dd2ea8f 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); /**