comparison libamr.c @ 9358:93da33bb271e libavcodec

Fix second amr_nb_decode_frame() to also use the new AVPacket argument
author superdump
date Tue, 07 Apr 2009 19:29:00 +0000
parents 54bc8a2727b0
children 57a2076a2c40
comparison
equal deleted inserted replaced
9357:2108342734cc 9358:93da33bb271e
441 return 0; 441 return 0;
442 } 442 }
443 443
444 static int amr_nb_decode_frame(AVCodecContext * avctx, 444 static int amr_nb_decode_frame(AVCodecContext * avctx,
445 void *data, int *data_size, 445 void *data, int *data_size,
446 const uint8_t * buf, int buf_size) 446 AVPacket *avpkt)
447 { 447 {
448 const uint8_t *buf = avpkt->data;
449 int buf_size = avpkt->size;
448 AMRContext *s = avctx->priv_data; 450 AMRContext *s = avctx->priv_data;
449 const uint8_t*amrData=buf; 451 const uint8_t*amrData=buf;
450 static const uint8_t block_size[16]={ 12, 13, 15, 17, 19, 20, 26, 31, 5, 0, 0, 0, 0, 0, 0, 0 }; 452 static const uint8_t block_size[16]={ 12, 13, 15, 17, 19, 20, 26, 31, 5, 0, 0, 0, 0, 0, 0, 0 };
451 enum Mode dec_mode; 453 enum Mode dec_mode;
452 int packet_size; 454 int packet_size;