]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/iff.c
free subtitle_header before overwriting it to avoid memleak
[ffmpeg] / libavcodec / iff.c
index 7ddcbc6c927bf27656e365dc86f39197bec2890a..19f41721544c422e6372370ecbde2ed33e77ed16 100644 (file)
@@ -161,7 +161,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
         return AVERROR_INVALIDDATA;
     }
 
-    if ((err = av_check_image_size(avctx->width, avctx->height, 0, avctx)))
+    if ((err = av_image_check_size(avctx->width, avctx->height, 0, avctx)))
         return err;
     s->planesize = FFALIGN(avctx->width, 16) >> 3; // Align plane size in bits to word-boundary
     s->planebuf = av_malloc(s->planesize + FF_INPUT_BUFFER_PADDING_SIZE);