]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vcr1.c
Simplify/Optimize another of the mbaff loop filter cases.
[ffmpeg] / libavcodec / vcr1.c
index 21136289d510cd0946dd201cb46a6c8c00e2abb4..6218c7c63483ea32b40ec1c9914574acf8569af7 100644 (file)
@@ -43,8 +43,10 @@ typedef struct VCR1Context{
 
 static int 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;
     VCR1Context * const a = avctx->priv_data;
     AVFrame *picture = data;
     AVFrame * const p= (AVFrame*)&a->picture;