tools/uncoded_frame: remove usage of avfilter_link_get_channels()
authorJames Almer <jamrial@gmail.com>
Fri, 5 Jan 2018 20:49:27 +0000 (17:49 -0300)
committerJames Almer <jamrial@gmail.com>
Fri, 5 Jan 2018 20:49:27 +0000 (17:49 -0300)
Signed-off-by: James Almer <jamrial@gmail.com>
tools/uncoded_frame.c

index 3ca2ba4..c044741 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 = avfilter_link_get_channels(st->link);
+            st->stream->codec->channels = st->link->channels;
             st->stream->codec->sample_rate = st->link->sample_rate;
             st->stream->codec->sample_fmt = st->link->format;
             st->stream->codec->codec_id =