av_warn_unused_result is added to functions whose return status should
be checked. Currently does not trigger any warnings, but should be
useful for future robustness.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
... | ... |
@@ -165,6 +165,7 @@ int ff_fmt_is_in(int fmt, const int *fmts); |
165 | 165 |
* @param log_ctx log context |
166 | 166 |
* @return >= 0 in case of success, a negative AVERROR code on error |
167 | 167 |
*/ |
168 |
+av_warn_unused_result |
|
168 | 169 |
int ff_parse_pixel_format(enum AVPixelFormat *ret, const char *arg, void *log_ctx); |
169 | 170 |
|
170 | 171 |
/** |
... | ... |
@@ -175,6 +176,7 @@ int ff_parse_pixel_format(enum AVPixelFormat *ret, const char *arg, void *log_ct |
175 | 175 |
* @param log_ctx log context |
176 | 176 |
* @return >= 0 in case of success, a negative AVERROR code on error |
177 | 177 |
*/ |
178 |
+av_warn_unused_result |
|
178 | 179 |
int ff_parse_sample_rate(int *ret, const char *arg, void *log_ctx); |
179 | 180 |
|
180 | 181 |
/** |
... | ... |
@@ -185,6 +187,7 @@ int ff_parse_sample_rate(int *ret, const char *arg, void *log_ctx); |
185 | 185 |
* @param log_ctx log context |
186 | 186 |
* @return >= 0 in case of success, a negative AVERROR code on error |
187 | 187 |
*/ |
188 |
+av_warn_unused_result |
|
188 | 189 |
int ff_parse_time_base(AVRational *ret, const char *arg, void *log_ctx); |
189 | 190 |
|
190 | 191 |
/** |
... | ... |
@@ -195,6 +198,7 @@ int ff_parse_time_base(AVRational *ret, const char *arg, void *log_ctx); |
195 | 195 |
* @param log_ctx log context |
196 | 196 |
* @return >= 0 in case of success, a negative AVERROR code on error |
197 | 197 |
*/ |
198 |
+av_warn_unused_result |
|
198 | 199 |
int ff_parse_sample_format(int *ret, const char *arg, void *log_ctx); |
199 | 200 |
|
200 | 201 |
/** |
... | ... |
@@ -207,6 +211,7 @@ int ff_parse_sample_format(int *ret, const char *arg, void *log_ctx); |
207 | 207 |
* @param log_ctx log context |
208 | 208 |
* @return >= 0 in case of success, a negative AVERROR code on error |
209 | 209 |
*/ |
210 |
+av_warn_unused_result |
|
210 | 211 |
int ff_parse_channel_layout(int64_t *ret, int *nret, const char *arg, |
211 | 212 |
void *log_ctx); |
212 | 213 |
|