diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-15 21:44:22 -0400 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-16 17:18:21 -0400 |
commit | cd8a0a9a9a9ea501367e7f1d17e70cde62e4c746 (patch) | |
tree | 7df7e38297a3989ffff8935be1c193a1f5c51e55 /libswscale | |
parent | 02daf2b36025012bc9dee8bd2ba5d5934f950558 (diff) | |
download | ffmpeg-cd8a0a9a9a9ea501367e7f1d17e70cde62e4c746.tar.gz |
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@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/swscale.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); /** |