From: Michael Niedermayer <[email protected]> Fixes artifacts Fixes use of freed memory
Signed-off-by: Michael Niedermayer <[email protected]> Signed-off-by: Derek Buitenhuis <[email protected]> --- libavcodec/fic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/fic.c b/libavcodec/fic.c index 53b60f6..2f07c7e 100644 --- a/libavcodec/fic.c +++ b/libavcodec/fic.c @@ -352,6 +352,7 @@ static int fic_decode_frame(AVCodecContext *avctx, void *data, av_log(avctx, AV_LOG_ERROR, "Could not allocate slice data.\n"); return AVERROR(ENOMEM); } + memset(ctx->slice_data, 0, nslices * sizeof(ctx->slice_data[0])); for (slice = 0; slice < nslices; slice++) { unsigned slice_off = AV_RB32(src + tsize + FIC_HEADER_SIZE + slice * 4); -- 1.9.2 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
