[SCM] libav/experimental: avcodec/fic: clear slice_data
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Aug 10 16:02:53 UTC 2014
The following commit has been merged in the experimental branch:
commit 144f7a561d32ae9bc657a217e2b4c6dd9a0d7df9
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Sat Feb 15 17:19:59 2014 +0100
avcodec/fic: clear slice_data
Fixes artifacts
Fixes use of freed memory
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
diff --git a/libavcodec/fic.c b/libavcodec/fic.c
index 9453941..1dfa02d 100644
--- a/libavcodec/fic.c
+++ b/libavcodec/fic.c
@@ -261,6 +261,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);
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list