]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/msrle.c
avcodec/dxtory: Fix input size check in dxtory_decode_v1_420()
[ffmpeg] / libavcodec / msrle.c
index df9f795b66d4827dca842cb496c8c693e1bb9c6c..3090a910c2402ce8d92865a4f4d1b66a6f5f446b 100644 (file)
@@ -135,7 +135,7 @@ static int msrle_decode_frame(AVCodecContext *avctx,
         }
     } else {
         bytestream2_init(&s->gb, buf, buf_size);
-        ff_msrle_decode(avctx, (AVPicture*)s->frame, avctx->bits_per_coded_sample, &s->gb);
+        ff_msrle_decode(avctx, s->frame, avctx->bits_per_coded_sample, &s->gb);
     }
 
     if ((ret = av_frame_ref(data, s->frame)) < 0)