]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mjpegbdec.c
Add av_shrink_packet function for use in av_get_packet that reduces pkt->size
[ffmpeg] / libavcodec / mjpegbdec.c
index a6c409a9022b135dd42c04ccbc016665eea5041c..04ad6c106c63243d7595d27a246733ffd516018e 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 /**
- * @file mjpegbdec.c
+ * @file libavcodec/mjpegbdec.c
  * Apple MJPEG-B decoder.
  */
 
 
 static int mjpegb_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;
     MJpegDecodeContext *s = avctx->priv_data;
     const uint8_t *buf_end, *buf_ptr;
     AVFrame *picture = data;
@@ -145,5 +147,6 @@ AVCodec mjpegb_decoder = {
     ff_mjpeg_decode_end,
     mjpegb_decode_frame,
     CODEC_CAP_DR1,
-    NULL
+    NULL,
+    .long_name = NULL_IF_CONFIG_SMALL("Apple MJPEG-B"),
 };