diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2008-08-27 01:40:46 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2008-08-27 01:40:46 +0000 |
commit | 0ffea2439bdb9275a34cac1830cfee29819a69e0 (patch) | |
tree | 1735a32d7577b51088d87be1e9603c0c94163709 /libavcodec/ac3dec.c | |
parent | e43b29ab26e831abdbba7cc481d1c704c0d86ee5 (diff) | |
download | ffmpeg-streaming-0ffea2439bdb9275a34cac1830cfee29819a69e0.zip ffmpeg-streaming-0ffea2439bdb9275a34cac1830cfee29819a69e0.tar.gz |
copy default coupling band structure from table to decoding context (used for E-AC-3)
Originally committed as revision 14990 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3dec.c')
-rw-r--r-- | libavcodec/ac3dec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index e4a1e75..3a7eec9 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -824,6 +824,9 @@ static int decode_audio_block(AC3DecodeContext *s, int blk) s->cpl_band_struct[bnd] = get_bits1(gbc); } } else if (!blk) { + memcpy(s->cpl_band_struct, + &ff_eac3_default_cpl_band_struct[cpl_begin_freq+1], + s->num_cpl_subbands-1); } s->cpl_band_struct[s->num_cpl_subbands-1] = 0; |