summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-10-06 18:53:47 -0400
committerRonald S. Bultje <rsbultje@gmail.com>2015-10-11 14:30:47 -0400
commit624057df3fd5b0044eeed94d2b8e14105b8944dc (patch)
tree87056fe31db804e13d0c87639e31037da754119a
parentf05ff057ff4112bd62dededcc630b1148e079650 (diff)
downloadffmpeg-streaming-624057df3fd5b0044eeed94d2b8e14105b8944dc.zip
ffmpeg-streaming-624057df3fd5b0044eeed94d2b8e14105b8944dc.tar.gz
avfilter/buffersrc: add av_warn_unused_result attributes
This adds av_warn_unused_result whenever it is relevant. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
-rw-r--r--libavfilter/buffersrc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/buffersrc.h b/libavfilter/buffersrc.h
index cd3d95f..847c093 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);
OpenPOWER on IntegriCloud