]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/zmbv.c
Fix build: Add intreadwrite.h and bswap.h #includes where necessary.
[ffmpeg] / libavcodec / zmbv.c
index 4e67aa90e1b4fb187ae5d41267ea9f04151607ff..6943ff3568470f05cc1d4e8764e1db053997e5c5 100644 (file)
@@ -27,6 +27,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#include "libavutil/intreadwrite.h"
 #include "avcodec.h"
 
 #include <zlib.h>
@@ -603,7 +604,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
     if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) {
         return 1;
     }
-    c->bpp = avctx->bits_per_sample;
+    c->bpp = avctx->bits_per_coded_sample;
 
     // Needed if zlib unused or init aborted before inflateInit
     memset(&(c->zstream), 0, sizeof(z_stream));
@@ -661,6 +662,7 @@ AVCodec zmbv_decoder = {
     decode_init,
     NULL,
     decode_end,
-    decode_frame
+    decode_frame,
+    .long_name = NULL_IF_CONFIG_SMALL("Zip Motion Blocks Video"),
 };