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>
... | ... |
@@ -78,6 +78,7 @@ unsigned av_buffersrc_get_nb_failed_requests(AVFilterContext *buffer_src); |
78 | 78 |
* This function is equivalent to av_buffersrc_add_frame_flags() with the |
79 | 79 |
* AV_BUFFERSRC_FLAG_KEEP_REF flag. |
80 | 80 |
*/ |
81 |
+av_warn_unused_result |
|
81 | 82 |
int av_buffersrc_write_frame(AVFilterContext *ctx, const AVFrame *frame); |
82 | 83 |
|
83 | 84 |
/** |
... | ... |
@@ -98,6 +99,7 @@ int av_buffersrc_write_frame(AVFilterContext *ctx, const AVFrame *frame); |
98 | 98 |
* This function is equivalent to av_buffersrc_add_frame_flags() without the |
99 | 99 |
* AV_BUFFERSRC_FLAG_KEEP_REF flag. |
100 | 100 |
*/ |
101 |
+av_warn_unused_result |
|
101 | 102 |
int av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame); |
102 | 103 |
|
103 | 104 |
/** |
... | ... |
@@ -115,6 +117,7 @@ int av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame); |
115 | 115 |
* @return >= 0 in case of success, a negative AVERROR code |
116 | 116 |
* in case of failure |
117 | 117 |
*/ |
118 |
+av_warn_unused_result |
|
118 | 119 |
int av_buffersrc_add_frame_flags(AVFilterContext *buffer_src, |
119 | 120 |
AVFrame *frame, int flags); |
120 | 121 |
|