History

avfiltergraph: add aresample_swr_opts

Michael Niedermayer committed 13 years ago

Commit 69d45d21 parent 26240272 files · +5 −1Browse files

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

Unified · Split

libavfilter/avfiltergraph.c+3−1
@@ -37,6 +37,7 @@ · 36 unmodified lines
3737
3838 static const AVOption options[]={
3939 {"scale_sws_opts" , "default scale filter options" , OFFSET(scale_sws_opts) , AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, 0 },
40+{"aresample_swr_opts" , "default aresample filter options" , OFFSET(aresample_swr_opts) , AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, 0 },
4041 {0}
4142 };
4243
@@ -66,6 +67,7 @@ void avfilter_graph_free(AVFilterGraph **graph) · 23 unmodified lines
6667 avfilter_free((*graph)->filters[(*graph)->filter_count - 1]);
6768 av_freep(&(*graph)->sink_links);
6869 av_freep(&(*graph)->scale_sws_opts);
70+ av_freep(&(*graph)->aresample_swr_opts);
6971 av_freep(&(*graph)->filters);
7072 av_freep(graph);
7173 }
@@ -386,7 +388,7 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx) · 314 unmodified lines
386388 snprintf(inst_name, sizeof(inst_name), "auto-inserted resampler %d",
387389 resampler_count++);
388390 if ((ret = avfilter_graph_create_filter(&convert, filter,
389− inst_name, NULL, NULL, graph)) < 0)
391+ inst_name, graph->aresample_swr_opts, NULL, graph)) < 0)
390392 return ret;
391393 break;
392394 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