Commit 6ae84e7b authored by James Almer's avatar James Almer

avcodec/libx265: zero the padding bytes in extradata

Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent b9606064
......@@ -400,6 +400,7 @@ static av_cold int libx265_encode_init(AVCodecContext *avctx)
}
memcpy(avctx->extradata, nal[0].payload, avctx->extradata_size);
memset(avctx->extradata + avctx->extradata_size, 0, AV_INPUT_BUFFER_PADDING_SIZE);
}
return 0;
......
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