[FFmpeg-cvslog] Revert "tools/uncoded_frame: remove usage of avfilter_link_get_channels()"

James Almer git at videolan.org
Sat Jan 6 03:14:59 EET 2018


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Jan  5 22:12:14 2018 -0300| [503164b54ba2f4fcc3ba829ee4ece43333998b15] | committer: James Almer

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.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=503164b54ba2f4fcc3ba829ee4ece43333998b15
---

 tools/uncoded_frame.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 =



More information about the ffmpeg-cvslog mailing list