This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 4f86ebfe940cd11de8f5ccf39e2b45da8354269d Author: James Almer <[email protected]> AuthorDate: Mon Dec 22 21:54:43 2025 -0300 Commit: James Almer <[email protected]> CommitDate: Wed Dec 24 12:23:37 2025 -0300 avcodec/lcevcdec: fix input dimensions for the base picture Fixes crashes with some samples. Signed-off-by: James Almer <[email protected]> --- libavcodec/lcevcdec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/lcevcdec.c b/libavcodec/lcevcdec.c index bccd524bf5..179ebdd708 100644 --- a/libavcodec/lcevcdec.c +++ b/libavcodec/lcevcdec.c @@ -50,9 +50,11 @@ static int alloc_base_frame(void *logctx, FFLCEVCContext *lcevc, LCEVC_PictureDesc desc; LCEVC_ColorFormat fmt = map_format(frame->format); LCEVC_PicturePlaneDesc planes[AV_VIDEO_MAX_PLANES] = { 0 }; + int width = frame->width - frame->crop_left - frame->crop_right; + int height = frame->height - frame->crop_top - frame->crop_bottom; LCEVC_ReturnCode res; - res = LCEVC_DefaultPictureDesc(&desc, fmt, frame->width, frame->height); + res = LCEVC_DefaultPictureDesc(&desc, fmt, width, height); if (res != LCEVC_Success) return AVERROR_EXTERNAL; _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
