changeset 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 2108342734cc
children f978e4a699c5
files libamr.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libamr.c	Tue Apr 07 18:31:14 2009 +0000
+++ b/libamr.c	Tue Apr 07 19:29:00 2009 +0000
@@ -443,8 +443,10 @@
 
 static int amr_nb_decode_frame(AVCodecContext * avctx,
             void *data, int *data_size,
-            const uint8_t * buf, int buf_size)
+            AVPacket *avpkt)
 {
+    const uint8_t *buf = avpkt->data;
+    int buf_size = avpkt->size;
     AMRContext *s = avctx->priv_data;
     const uint8_t*amrData=buf;
     static const uint8_t block_size[16]={ 12, 13, 15, 17, 19, 20, 26, 31, 5, 0, 0, 0, 0, 0, 0, 0 };