History

Do not leave positive values undefined when negative are defined as error

Define positive return values as non errors and leave further meaning undefined This allows future extensions to use these values

Michael Niedermayer committed 13 years ago

Commit d5ec8ba1 parent a63886118 files · +30 −30Browse files

Showing the changes to libavfilter/avfiltergraph.c (1 of 18 files). Show all

Unified · Split

libavfilter/avfiltergraph.c+2−2
@@ -224,7 +224,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 223 unmodified lines
224 * A graph is considered valid if all its input and output pads are224 * 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 otherwise227 * @return >= 0 in case of success, a negative value otherwise
228 */228 */
229static int graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx)229static 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 otherwise265 * @return >= 0 in case of success, a negative value otherwise
266 */266 */
267static int graph_config_links(AVFilterGraph *graph, AVClass *log_ctx)267static int graph_config_links(AVFilterGraph *graph, AVClass *log_ctx)
268{268{

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t