Commit e6f1601d authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/svq3: Use av_mallocz_array() for emu_edge_buffer

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2493558a
...@@ -1110,7 +1110,7 @@ static int get_buffer(AVCodecContext *avctx, H264Picture *pic) ...@@ -1110,7 +1110,7 @@ static int get_buffer(AVCodecContext *avctx, H264Picture *pic)
goto fail; goto fail;
if (!h->edge_emu_buffer) { if (!h->edge_emu_buffer) {
h->edge_emu_buffer = av_mallocz(pic->f.linesize[0] * 17); h->edge_emu_buffer = av_mallocz_array(pic->f.linesize[0], 17);
if (!h->edge_emu_buffer) if (!h->edge_emu_buffer)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment