]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/zmbv.c
Removes misleading const qualifier, gets rid of two compiler warnings
[ffmpeg] / libavcodec / zmbv.c
index 51079fa944421a5884c7910416a5c65287181dac..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));
@@ -662,6 +662,6 @@ AVCodec zmbv_decoder = {
     NULL,
     decode_end,
     decode_frame,
-    .long_name = "Zip Motion Blocks Video",
+    .long_name = NULL_IF_CONFIG_SMALL("Zip Motion Blocks Video"),
 };