From: Ganesh Ajjanagadde Date: Tue, 6 Oct 2015 22:53:47 +0000 (-0400) Subject: avfilter/buffersrc: add av_warn_unused_result attributes X-Git-Tag: android-x86-7.1-r1~8613 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=624057df3fd5b0044eeed94d2b8e14105b8944dc;p=android-x86%2Fexternal-ffmpeg.git avfilter/buffersrc: add av_warn_unused_result attributes This adds av_warn_unused_result whenever it is relevant. Signed-off-by: Ganesh Ajjanagadde Signed-off-by: Ronald S. Bultje --- diff --git a/libavfilter/buffersrc.h b/libavfilter/buffersrc.h index cd3d95fb9a..847c093c5e 100644 --- a/libavfilter/buffersrc.h +++ b/libavfilter/buffersrc.h @@ -78,6 +78,7 @@ unsigned av_buffersrc_get_nb_failed_requests(AVFilterContext *buffer_src); * This function is equivalent to av_buffersrc_add_frame_flags() with the * AV_BUFFERSRC_FLAG_KEEP_REF flag. */ +av_warn_unused_result int av_buffersrc_write_frame(AVFilterContext *ctx, const AVFrame *frame); /** @@ -98,6 +99,7 @@ int av_buffersrc_write_frame(AVFilterContext *ctx, const AVFrame *frame); * This function is equivalent to av_buffersrc_add_frame_flags() without the * AV_BUFFERSRC_FLAG_KEEP_REF flag. */ +av_warn_unused_result int av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame); /** @@ -115,6 +117,7 @@ int av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame); * @return >= 0 in case of success, a negative AVERROR code * in case of failure */ +av_warn_unused_result int av_buffersrc_add_frame_flags(AVFilterContext *buffer_src, AVFrame *frame, int flags);