OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
749d16c
)
Fix channel layout for some stereo flac files.
author
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Fri, 29 Apr 2011 08:42:43 +0000
(10:42 +0200)
committer
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Fri, 29 Apr 2011 08:42:43 +0000
(10:42 +0200)
libavcodec/flac.c
patch
|
blob
|
history
diff --git
a/libavcodec/flac.c
b/libavcodec/flac.c
index
6e94c2c
..
5ed3ef7
100644
(file)
--- 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);