summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-12-26 16:53:02 +0100
committerNicolas George <nicolas.george@normalesup.org>2013-01-26 11:15:38 +0100
commit41f025dff0a3c8f91849cf46a6b52947e6264719 (patch)
treea224e61e5b7e9b55a7b7e5f889df1648e41f46e8 /ffmpeg.c
parent699b286a21456bc24d60383a313ac61eed44a919 (diff)
ffmpeg: support filtering of unknown channel layouts.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 329b7e420f..54097f422b 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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: