Revert "tools/uncoded_frame: remove usage of avfilter_link_get_channels()"
authorJames Almer <jamrial@gmail.com>
Sat, 6 Jan 2018 01:12:14 +0000 (22:12 -0300)
committerJames Almer <jamrial@gmail.com>
Sat, 6 Jan 2018 01:13:18 +0000 (22:13 -0300)
This reverts commit 01c21653eee53a353ae887a47cd2b48165902383.

It was applied by accident before it could be reviewed.

tools/uncoded_frame.c

index c044741..3ca2ba4 100644 (file)
@@ -178,7 +178,7 @@ int main(int argc, char **argv)
             break;
         case AVMEDIA_TYPE_AUDIO:
             st->stream->codec->channel_layout = st->link->channel_layout;
-            st->stream->codec->channels = st->link->channels;
+            st->stream->codec->channels = avfilter_link_get_channels(st->link);
             st->stream->codec->sample_rate = st->link->sample_rate;
             st->stream->codec->sample_fmt = st->link->format;
             st->stream->codec->codec_id =