diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-12-26 16:53:02 +0100 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2013-01-26 11:15:38 +0100 |
commit | 41f025dff0a3c8f91849cf46a6b52947e6264719 (patch) | |
tree | a224e61e5b7e9b55a7b7e5f889df1648e41f46e8 /ffmpeg.c | |
parent | 699b286a21456bc24d60383a313ac61eed44a919 (diff) | |
download | ffmpeg-41f025dff0a3c8f91849cf46a6b52947e6264719.tar.gz |
ffmpeg: support filtering of unknown channel layouts.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2240,7 +2240,7 @@ static int transcode_init(void) codec->sample_fmt = ost->filter->filter->inputs[0]->format; codec->sample_rate = ost->filter->filter->inputs[0]->sample_rate; codec->channel_layout = ost->filter->filter->inputs[0]->channel_layout; - codec->channels = av_get_channel_layout_nb_channels(codec->channel_layout); + codec->channels = avfilter_link_get_channels(ost->filter->filter->inputs[0]); codec->time_base = (AVRational){ 1, codec->sample_rate }; break; case AVMEDIA_TYPE_VIDEO: |