comparison amrnbdec.c @ 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 26aabf52f578
comparison
equal deleted inserted replaced
11644:7dd2a45249a9 11645:69131e8f6614
193 skip_bits(&gb, 1); // padding bit 193 skip_bits(&gb, 1); // padding bit
194 mode = get_bits(&gb, 4); // frame type 194 mode = get_bits(&gb, 4); // frame type
195 p->bad_frame_indicator = !get_bits1(&gb); // quality bit 195 p->bad_frame_indicator = !get_bits1(&gb); // quality bit
196 skip_bits(&gb, 2); // two padding bits 196 skip_bits(&gb, 2); // two padding bits
197 197
198 if (mode <= MODE_DTX) { 198 if (mode < MODE_DTX) {
199 uint16_t *data = (uint16_t *)&p->frame; 199 uint16_t *data = (uint16_t *)&p->frame;
200 const uint8_t *order = amr_unpacking_bitmaps_per_mode[mode]; 200 const uint8_t *order = amr_unpacking_bitmaps_per_mode[mode];
201 int field_size; 201 int field_size;
202 202
203 memset(&p->frame, 0, sizeof(AMRNBFrame)); 203 memset(&p->frame, 0, sizeof(AMRNBFrame));