[FFmpeg-cvslog] avcodec/sanm: Fix uninitialized reference frames
Max Justicz
git at videolan.org
Tue Jun 6 01:04:26 EEST 2017
ffmpeg | branch: release/2.8 | Max Justicz <maxj at mit.edu> | Wed May 24 15:25:50 2017 +0200| [87c13e4e88ec69e3b1d03ecbe055149913fa900b] | committer: Michael Niedermayer
avcodec/sanm: Fix uninitialized reference frames
Fixes: poc.snm
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit ca616b0f72c65b0ef5f9e1e6125698b15f50a26e)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=87c13e4e88ec69e3b1d03ecbe055149913fa900b
---
libavcodec/sanm.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c
index 1aa002b6a5..065bf7aca1 100644
--- a/libavcodec/sanm.c
+++ b/libavcodec/sanm.c
@@ -462,11 +462,11 @@ static void destroy_buffers(SANMVideoContext *ctx)
static av_cold int init_buffers(SANMVideoContext *ctx)
{
- av_fast_padded_malloc(&ctx->frm0, &ctx->frm0_size, ctx->buf_size);
- av_fast_padded_malloc(&ctx->frm1, &ctx->frm1_size, ctx->buf_size);
- av_fast_padded_malloc(&ctx->frm2, &ctx->frm2_size, ctx->buf_size);
+ av_fast_padded_mallocz(&ctx->frm0, &ctx->frm0_size, ctx->buf_size);
+ av_fast_padded_mallocz(&ctx->frm1, &ctx->frm1_size, ctx->buf_size);
+ av_fast_padded_mallocz(&ctx->frm2, &ctx->frm2_size, ctx->buf_size);
if (!ctx->version)
- av_fast_padded_malloc(&ctx->stored_frame,
+ av_fast_padded_mallocz(&ctx->stored_frame,
&ctx->stored_frame_size, ctx->buf_size);
if (!ctx->frm0 || !ctx->frm1 || !ctx->frm2 ||
More information about the ffmpeg-cvslog
mailing list