]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/smc.c
Fix H.264 picture reordering, 2nd try.
[ffmpeg] / libavcodec / smc.c
index d0102eaa9c8a6992f7369a5f5c7b0ed95ae0dc81..75ecd4f18663f0c4bcbd3e95beaeed6961eaabce 100644 (file)
@@ -441,8 +441,10 @@ static av_cold int smc_decode_init(AVCodecContext *avctx)
 
 static int smc_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;
     SmcContext *s = avctx->priv_data;
 
     s->buf = buf;