]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/roqvideodec.c
Export H264 profile and level in AVCodecContext.
[ffmpeg] / libavcodec / roqvideodec.c
index c9daec729fa5ed473fbc3d7cf1510ab7d84a9c60..8e3bdb0dc30ce86d8c061453f3766e3ba381737e 100644 (file)
@@ -28,7 +28,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <unistd.h>
 
 #include "avcodec.h"
 #include "bytestream.h"
@@ -169,8 +168,10 @@ static av_cold int roq_decode_init(AVCodecContext *avctx)
 
 static int roq_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;
     RoqContext *s = avctx->priv_data;
     int copy= !s->current_frame->data[0];