122
124
AMRContext *s = avctx->priv_data;
124
126
Decoder_Interface_exit(s->dec_state);
128
131
static int amr_nb_decode_frame(AVCodecContext *avctx, void *data,
131
134
const uint8_t *buf = avpkt->data;
132
135
int buf_size = avpkt->size;
133
136
AMRContext *s = avctx->priv_data;
134
137
static const uint8_t block_size[16] = { 12, 13, 15, 17, 19, 20, 26, 31, 5, 0, 0, 0, 0, 0, 0, 0 };
138
141
av_dlog(avctx, "amr_decode_frame buf=%p buf_size=%d frame_count=%d!!\n",
141
151
dec_mode = (buf[0] >> 3) & 0x000F;
142
152
packet_size = block_size[dec_mode] + 1;