changeset 11645:69131e8f6614 libavcodec

10l: do not try to unpack DTX frames in AMR-NB decoder
author vitor
date Wed, 21 Apr 2010 13:05:25 +0000
parents 7dd2a45249a9
children a69e24b73f3c
files amrnbdec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/amrnbdec.c	Tue Apr 20 14:45:34 2010 +0000
+++ b/amrnbdec.c	Wed Apr 21 13:05:25 2010 +0000
@@ -195,7 +195,7 @@
     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;