History

lavfi/avfiltergraph: avoid to print "(null)" in the scale args

Fix parsing.

Stefano Sabatini committed 14 years ago

Commit 8f37a1e1 parent 2969abd1 file · +5 −1Browse files

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

Unified · Split

libavfilter/avfiltergraph.c+5−1
@@ -358,7 +358,11 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx) · 357 unmodified lines
358 358
359 snprintf(inst_name, sizeof(inst_name), "auto-inserted scaler %d",359 snprintf(inst_name, sizeof(inst_name), "auto-inserted scaler %d",
360 scaler_count++);360 scaler_count++);
361 snprintf(scale_args, sizeof(scale_args), "0:0:%s", graph->scale_sws_opts);361 if (graph->scale_sws_opts)
362 snprintf(scale_args, sizeof(scale_args), "0:0:%s", graph->scale_sws_opts);
363 else
364 snprintf(scale_args, sizeof(scale_args), "0:0");
365
362 if ((ret = avfilter_graph_create_filter(&convert, filter,366 if ((ret = avfilter_graph_create_filter(&convert, filter,
363 inst_name, scale_args, NULL,367 inst_name, scale_args, NULL,
364 graph)) < 0)368 graph)) < 0)

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