]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/cinepak.c
Remove a pointless right-shift in xan decoder.
[ffmpeg] / libavcodec / cinepak.c
index 57a9fa56b67cc7d54d0c7cc16e10ed5429f4f64a..5030165bd02727af1f1fe24635689eb082d6cdbe 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 /**
- * @file cinepak.c
+ * @file libavcodec/cinepak.c
  * Cinepak video decoder
  * by Ewald Snel <ewald@rambo.its.tudelft.nl>
  * For more information on the Cinepak algorithm, visit:
@@ -411,8 +411,10 @@ static av_cold int cinepak_decode_init(AVCodecContext *avctx)
 
 static int cinepak_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;
     CinepakContext *s = avctx->priv_data;
 
     s->data = buf;