summaryrefslogtreecommitdiffstats
path: root/tools/uncoded_frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/uncoded_frame.c')
-rw-r--r--tools/uncoded_frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/uncoded_frame.c b/tools/uncoded_frame.c
index 3ca2ba4..c044741 100644
--- a/tools/uncoded_frame.c
+++ b/tools/uncoded_frame.c
@@ -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 =
OpenPOWER on IntegriCloud