[FFmpeg-devel] [PATCH] avfilter/buffersrc: add av_warn_unused_result attributes
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Mon Oct 5 22:30:48 CEST 2015
This adds av_warn_unused_result whenever it is relevant.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
libavfilter/buffersrc.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavfilter/buffersrc.h b/libavfilter/buffersrc.h
index cd3d95f..b1b2669 100644
--- a/libavfilter/buffersrc.h
+++ b/libavfilter/buffersrc.h
@@ -78,7 +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.
*/
-int av_buffersrc_write_frame(AVFilterContext *ctx, const AVFrame *frame);
+av_warn_unused_result int av_buffersrc_write_frame(AVFilterContext *ctx, const AVFrame *frame);
/**
* Add a frame to the buffer source.
@@ -98,7 +98,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.
*/
-int av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame);
+av_warn_unused_result int av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame);
/**
* Add a frame to the buffer source.
@@ -115,7 +115,7 @@ int av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame);
* @return >= 0 in case of success, a negative AVERROR code
* in case of failure
*/
-int av_buffersrc_add_frame_flags(AVFilterContext *buffer_src,
+av_warn_unused_result int av_buffersrc_add_frame_flags(AVFilterContext *buffer_src,
AVFrame *frame, int flags);
--
2.6.0
More information about the ffmpeg-devel
mailing list