From a2d3588813cf5410d56c1005f11ee56a61da9092 Mon Sep 17 00:00:00 2001 From: Vitor Sessak Date: Wed, 21 Apr 2010 13:05:25 +0000 Subject: [PATCH] 10l: do not try to unpack DTX frames in AMR-NB decoder Originally committed as revision 22930 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/amrnbdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/amrnbdec.c b/libavcodec/amrnbdec.c index cecb4ce927..08ad9525c8 100644 --- a/libavcodec/amrnbdec.c +++ b/libavcodec/amrnbdec.c @@ -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;