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/graphparser.c (1 of 18 files). Show all
Unified · Split
| @@ -89,7 +89,7 @@ static char *parse_link_name(const char **buf, void *log_ctx) · 88 unmodified lines | ||
| 89 | 89 | * @param filt_name the name of the filter to create |
| 90 | 90 | * @param args the arguments provided to the filter during its initialization |
| 91 | 91 | * @param log_ctx the log context to use |
| 92 | − * @return 0 in case of success, a negative AVERROR code otherwise | |
| 92 | + * @return >= 0 in case of success, a negative AVERROR code otherwise | |
| 93 | 93 | */ |
| 94 | 94 | static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int index, |
| 95 | 95 | const char *filt_name, const char *args, void *log_ctx) |
| @@ -152,7 +152,7 @@ static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int ind · 56 unmodified lines | ||
| 152 | 152 | * @param index an index which is assigned to the created filter |
| 153 | 153 | * instance, and which is supposed to be unique for each filter |
| 154 | 154 | * instance added to the filtergraph |
| 155 | − * @return 0 in case of success, a negative AVERROR code otherwise | |
| 155 | + * @return >= 0 in case of success, a negative AVERROR code otherwise | |
| 156 | 156 | */ |
| 157 | 157 | static int parse_filter(AVFilterContext **filt_ctx, const char **buf, AVFilterGraph *graph, |
| 158 | 158 | int index, void *log_ctx) |