mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
avcodec/svq3: Use av_mallocz_array() for emu_edge_buffer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2493558a06
commit
e6f1601d6d
@ -1110,7 +1110,7 @@ static int get_buffer(AVCodecContext *avctx, H264Picture *pic)
|
||||
goto fail;
|
||||
|
||||
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)
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user