History

Merge commit '9f1223562e134bac6345a465870b9d56ff7d60cf'

* commit '9f1223562e134bac6345a465870b9d56ff7d60cf': lavfi: connect libavresample options to af_resample via AVFilterGraph Conflicts: doc/APIchanges libavfilter/avfiltergraph.c libavfilter/avfiltergraph.h libavfilter/version.h

Michael Niedermayer committed 13 years ago

Commit 71cf0942 parents f7c4b76 9f122355 files · +49 −3Browse files

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

Unified · Split

libavfilter/avfiltergraph.c+7−1
@@ -68,6 +68,7 @@ void avfilter_graph_free(AVFilterGraph **graph) · 67 unmodified lines
6868 av_freep(&(*graph)->sink_links);
6969 av_freep(&(*graph)->scale_sws_opts);
7070 av_freep(&(*graph)->aresample_swr_opts);
71+ av_freep(&(*graph)->resample_lavr_opts);
7172 av_freep(&(*graph)->filters);
7273 av_freep(graph);
7374 }
@@ -323,8 +324,13 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx) · 249 unmodified lines
323324
324325 snprintf(inst_name, sizeof(inst_name), "auto-inserted resampler %d",
325326 resampler_count++);
327+ scale_args[0] = '\0';
328+ if (graph->aresample_swr_opts)
329+ snprintf(scale_args, sizeof(scale_args), "%s",
330+ graph->aresample_swr_opts);
326331 if ((ret = avfilter_graph_create_filter(&convert, filter,
327− inst_name, graph->aresample_swr_opts, NULL, graph)) < 0)
332+ inst_name, graph->aresample_swr_opts,
333+ NULL, graph)) < 0)
328334 return ret;
329335 break;
330336 default:

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