From cd8a0a9a9a9ea501367e7f1d17e70cde62e4c746 Mon Sep 17 00:00:00 2001 From: Ganesh Ajjanagadde Date: Thu, 15 Oct 2015 21:44:22 -0400 Subject: 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 --- libswscale/swscale.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libswscale/swscale.h') 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); /** -- cgit v1.2.3