Commit cd8a0a9a authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde

swscale/swscale: add av_warn_unused_result to sws_init_context

This should not trigger any warnings; but adds robustness.
Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent 02daf2b3
...@@ -150,6 +150,7 @@ struct SwsContext *sws_alloc_context(void); ...@@ -150,6 +150,7 @@ struct SwsContext *sws_alloc_context(void);
* @return zero or positive value on success, a negative value on * @return zero or positive value on success, a negative value on
* error * error
*/ */
av_warn_unused_result
int sws_init_context(struct SwsContext *sws_context, SwsFilter *srcFilter, SwsFilter *dstFilter); int sws_init_context(struct SwsContext *sws_context, SwsFilter *srcFilter, SwsFilter *dstFilter);
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment