10l: do not try to unpack DTX frames in AMR-NB decoder

Originally committed as revision 22930 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Vitor Sessak 2010-04-21 13:05:25 +00:00
parent 10fa22ccfb
commit a2d3588813
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ static enum Mode unpack_bitstream(AMRContext *p, const uint8_t *buf,
p->bad_frame_indicator = !get_bits1(&gb); // quality bit
skip_bits(&gb, 2); // two padding bits
if (mode <= MODE_DTX) {
if (mode < MODE_DTX) {
uint16_t *data = (uint16_t *)&p->frame;
const uint8_t *order = amr_unpacking_bitmaps_per_mode[mode];
int field_size;