]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/blobdiff - libavcodec/libgsm.c
frsh: Export information about the last RTP contract and VRES
[frescor/ffmpeg.git] / libavcodec / libgsm.c
index e036afd3c4533dbf769b8cf770ab7449585025ee..7dc2af840591ec55c5dc57d891e8cd378ebc703e 100644 (file)
@@ -138,7 +138,9 @@ AVCodec libgsm_ms_encoder = {
 
 static int libgsm_decode_frame(AVCodecContext *avctx,
                                void *data, int *data_size,
-                               uint8_t *buf, int buf_size) {
+                               AVPacket *avpkt) {
+    const uint8_t *buf = avpkt->data;
+    int buf_size = avpkt->size;
     *data_size = 0; /* In case of error */
     if(buf_size < avctx->block_align) return -1;
     switch(avctx->codec_id) {