]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/blobdiff - libavcodec/loco.c
frsh: Export information about the last RTP contract and VRES
[frescor/ffmpeg.git] / libavcodec / loco.c
index 64b718fb81e29f631308828da94629211e09d47c..4fd64f4bdafd480ef8fac910c0da88718f6d013e 100644 (file)
@@ -25,7 +25,7 @@
  */
 
 #include "avcodec.h"
-#include "bitstream.h"
+#include "get_bits.h"
 #include "golomb.h"
 #include "mathops.h"
 
@@ -158,8 +158,10 @@ static int loco_decode_plane(LOCOContext *l, uint8_t *data, int width, int heigh
 
 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;
     LOCOContext * const l = avctx->priv_data;
     AVFrame * const p= (AVFrame*)&l->pic;
     int decoded;