aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-01-05 22:12:14 -0300
committerJames Almer <jamrial@gmail.com>2018-01-05 22:13:18 -0300
commit503164b54ba2f4fcc3ba829ee4ece43333998b15 (patch)
tree3193672ef124df7f8f8b6c0882d72ca655495052 /tools
parent077fe9eb0679ccba53b1814ac5e687ea3eb2a3c1 (diff)
downloadffmpeg-503164b54ba2f4fcc3ba829ee4ece43333998b15.tar.gz
Revert "tools/uncoded_frame: remove usage of avfilter_link_get_channels()"
This reverts commit 01c21653eee53a353ae887a47cd2b48165902383. It was applied by accident before it could be reviewed.
Diffstat (limited to 'tools')
-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 c044741701..3ca2ba4bbe 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 = 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 =