This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/4.4 in repository ffmpeg.
commit f93b6724608574a0abecc2305752d6b6ea067587 Author: Michael Niedermayer <[email protected]> AuthorDate: Fri May 1 18:40:00 2026 +0200 Commit: Michael Niedermayer <[email protected]> CommitDate: Tue May 5 18:55:13 2026 +0200 avcodec/wmaenc: Fix missing padding in extradata Reported-by: Kenan Alghythee <[email protected]> (cherry picked from commit 23227a444de4a8f7696f46660cdd044b460f7e47) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/wmaenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/wmaenc.c b/libavcodec/wmaenc.c index a28a0c387b..d64515f467 100644 --- a/libavcodec/wmaenc.c +++ b/libavcodec/wmaenc.c @@ -61,14 +61,14 @@ static av_cold int encode_init(AVCodecContext *avctx) flags1 = 0; flags2 = 1; if (avctx->codec->id == AV_CODEC_ID_WMAV1) { - extradata = av_malloc(4); + extradata = av_mallocz(4 + AV_INPUT_BUFFER_PADDING_SIZE); if (!extradata) return AVERROR(ENOMEM); avctx->extradata_size = 4; AV_WL16(extradata, flags1); AV_WL16(extradata + 2, flags2); } else if (avctx->codec->id == AV_CODEC_ID_WMAV2) { - extradata = av_mallocz(10); + extradata = av_mallocz(10 + AV_INPUT_BUFFER_PADDING_SIZE); if (!extradata) return AVERROR(ENOMEM); avctx->extradata_size = 10; _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
