You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
mimic: initialize padding of swap_buf through av_fast_padded_malloc
This commit is contained in:
@@ -370,8 +370,7 @@ static int mimic_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
|
|
||||||
ff_thread_finish_setup(avctx);
|
ff_thread_finish_setup(avctx);
|
||||||
|
|
||||||
av_fast_malloc(&ctx->swap_buf, &ctx->swap_buf_size,
|
av_fast_padded_malloc(&ctx->swap_buf, &ctx->swap_buf_size, swap_buf_size);
|
||||||
swap_buf_size + FF_INPUT_BUFFER_PADDING_SIZE);
|
|
||||||
if(!ctx->swap_buf)
|
if(!ctx->swap_buf)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user