diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2010-04-21 13:05:25 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2010-04-21 13:05:25 +0000 |
commit | a2d3588813cf5410d56c1005f11ee56a61da9092 (patch) | |
tree | fba3fa453f776a2a350cc6fed1826bb6507d8bab /libavcodec/amrnbdec.c | |
parent | 10fa22ccfb3b60f68bc544ebf8d5fc32e9698f26 (diff) | |
download | ffmpeg-a2d3588813cf5410d56c1005f11ee56a61da9092.tar.gz |
10l: do not try to unpack DTX frames in AMR-NB decoder
Originally committed as revision 22930 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/amrnbdec.c')
-rw-r--r-- | libavcodec/amrnbdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |