Define positive return values as non errors and leave further meaning undefined This allows future extensions to use these values
Showing the changes to libavfilter/avfiltergraph.c (1 of 18 files). Show all
Unified · Split
| @@ -224,7 +224,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 223 unmodified lines | |||
| 224 | * A graph is considered valid if all its input and output pads are | 224 | * A graph is considered valid if all its input and output pads are |
| 225 | * connected. | 225 | * connected. |
| 226 | * | 226 | * |
| 227 | * @return 0 in case of success, a negative value otherwise | 227 | * @return >= 0 in case of success, a negative value otherwise |
| 228 | */ | 228 | */ |
| 229 | static int graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx) | 229 | static int graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx) |
| 230 | { | 230 | { |
| @@ -262,7 +262,7 @@ static int graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx) · 31 unmodified lines | |||
| 262 | /** | 262 | /** |
| 263 | * Configure all the links of graphctx. | 263 | * Configure all the links of graphctx. |
| 264 | * | 264 | * |
| 265 | * @return 0 in case of success, a negative value otherwise | 265 | * @return >= 0 in case of success, a negative value otherwise |
| 266 | */ | 266 | */ |
| 267 | static int graph_config_links(AVFilterGraph *graph, AVClass *log_ctx) | 267 | static int graph_config_links(AVFilterGraph *graph, AVClass *log_ctx) |
| 268 | { | 268 | { |