[FFmpeg-cvslog] Fix channel layout for some stereo flac files.

Carl Eugen Hoyos git at videolan.org
Fri Apr 29 10:50:57 CEST 2011


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri Apr 29 10:42:43 2011 +0200| [d2ee3c913d6fec3cb8c0c1b67347007c7cd604e1] | committer: Carl Eugen Hoyos

Fix channel layout for some stereo flac files.

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

 libavcodec/flac.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/flac.c b/libavcodec/flac.c
index 6e94c2c..5ed3ef7 100644
--- a/libavcodec/flac.c
+++ b/libavcodec/flac.c
@@ -60,6 +60,7 @@ int ff_flac_decode_frame_header(AVCodecContext *avctx, GetBitContext *gb,
         fi->ch_mode = FLAC_CHMODE_INDEPENDENT;
     } else if (fi->ch_mode <= FLAC_CHMODE_MID_SIDE) {
         fi->channels = 2;
+        avctx->channel_layout = AV_CH_LAYOUT_STEREO;
     } else {
         av_log(avctx, AV_LOG_ERROR + log_level_offset,
                "invalid channel mode: %d\n", fi->ch_mode);



More information about the ffmpeg-cvslog mailing list