]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/zmbv.c
flashsv: use skip_bits_long() where required
[ffmpeg] / libavcodec / zmbv.c
index 4e67aa90e1b4fb187ae5d41267ea9f04151607ff..e36ff27301326291a35e5872052c2e0978c6adf0 100644 (file)
@@ -603,7 +603,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 +661,7 @@ AVCodec zmbv_decoder = {
     decode_init,
     NULL,
     decode_end,
-    decode_frame
+    decode_frame,
+    .long_name = NULL_IF_CONFIG_SMALL("Zip Motion Blocks Video"),
 };