]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vcr1.c
ARM: align stack in NEON h264 mc functions
[ffmpeg] / libavcodec / vcr1.c
index a907b50cb9f5717fa161acf5db03db57069fcdc6..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;
@@ -123,7 +125,6 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size,
     AVFrame *pict = data;
     AVFrame * const p= (AVFrame*)&a->picture;
     int size;
-    int mb_x, mb_y;
 
     *p = *pict;
     p->pict_type= FF_I_TYPE;