diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-04-29 10:42:43 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-04-29 10:42:43 +0200 |
commit | d2ee3c913d6fec3cb8c0c1b67347007c7cd604e1 (patch) | |
tree | ffea9da8dd3716f6e56098c725837817c218fa04 | |
parent | 749d16ced4596d6b83c3a2b2cf3a44c714516379 (diff) | |
download | ffmpeg-d2ee3c913d6fec3cb8c0c1b67347007c7cd604e1.tar.gz |
Fix channel layout for some stereo flac files.
-rw-r--r-- | libavcodec/flac.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/flac.c b/libavcodec/flac.c index 6e94c2c5ff..5ed3ef7fc3 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); |