1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-09-16 08:36:51 +02:00

new dba values requires running last 2 bit allocation stages

Originally committed as revision 13584 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Justin Ruggles
2008-05-31 19:56:54 +00:00
parent e992fba4ba
commit e25973a1fd

View File

@@ -1005,6 +1005,9 @@ static int ac3_parse_audio_block(AC3DecodeContext *s, int blk)
s->dba_lengths[ch][seg] = get_bits(gbc, 4);
s->dba_values[ch][seg] = get_bits(gbc, 3);
}
/* run last 2 bit allocation stages if new dba values */
bit_alloc_stages[ch] = FFMAX(bit_alloc_stages[ch], 2);
}
}
} else if(blk == 0) {