]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/msvideo1.c
Add ff_ prefix for mpeg2_dc_scale_table.
[ffmpeg] / libavcodec / msvideo1.c
index c208d47e812b05073dfa895eb272a4d06bb6376b..a9d94f8f571021214c9d8d7c84b1a68a00b01970 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 /**
- * @file msvideo1.c
+ * @file libavcodec/msvideo1.c
  * Microsoft Video-1 Decoder by Mike Melanson (melanson@pcisys.net)
  * For more information about the MS Video-1 format, visit:
  *   http://www.pcisys.net/~melanson/codecs/
@@ -33,7 +33,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <unistd.h>
 
 #include "libavutil/intreadwrite.h"
 #include "avcodec.h"
@@ -294,8 +293,10 @@ static void msvideo1_decode_16bit(Msvideo1Context *s)
 
 static int msvideo1_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;
     Msvideo1Context *s = avctx->priv_data;
 
     s->buf = buf;