diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-03-29 10:34:11 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-04-13 15:11:56 +0200 |
commit | 5297250920bc03cc39bff586788564f60fb38af3 (patch) | |
tree | 828ed6e5c081085f98f97833797f862490266a45 /fftools | |
parent | 2f24290c8edd14262ee8a674a64b1223e1cbbf41 (diff) | |
download | ffmpeg-5297250920bc03cc39bff586788564f60fb38af3.tar.gz |
fftools/ffmpeg_filter: stop setting encoder channel layout unnecessarily
The channel layout is set before opening the encoder, in enc_open().
Messing with it in configure_output_audio_filter() cannot accomplish
anything meaningful.
Diffstat (limited to 'fftools')
-rw-r--r-- | fftools/ffmpeg_filter.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index f48ae83a40..584f51ac3f 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -699,7 +699,6 @@ static int configure_output_audio_filter(FilterGraph *fg, OutputFilter *ofilter, { OutputStream *ost = ofilter->ost; OutputFile *of = output_files[ost->file_index]; - AVCodecContext *codec = ost->enc_ctx; AVFilterContext *last_filter = out->filter_ctx; int pad_idx = out->pad_idx; AVBPrint args; @@ -750,9 +749,6 @@ static int configure_output_audio_filter(FilterGraph *fg, OutputFilter *ofilter, } #endif - if (codec->ch_layout.order == AV_CHANNEL_ORDER_UNSPEC) - av_channel_layout_default(&codec->ch_layout, codec->ch_layout.nb_channels); - choose_sample_fmts(ofilter, &args); choose_sample_rates(ofilter, &args); choose_channel_layouts(ofilter, &args); |