This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/8.0 in repository ffmpeg.
commit 3db8e93a209904786c679261a38d9e1acb43d4d7 Author: James Almer <[email protected]> AuthorDate: Mon Dec 22 21:54:43 2025 -0300 Commit: James Almer <[email protected]> CommitDate: Sun Jan 11 20:32:57 2026 -0300 avcodec/lcevcdec: fix input dimensions for the base picture Fixes crashes with some samples. Signed-off-by: James Almer <[email protected]> (cherry picked from commit 4f86ebfe940cd11de8f5ccf39e2b45da8354269d) --- libavcodec/lcevcdec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/lcevcdec.c b/libavcodec/lcevcdec.c index d5cc2b73f3..a88a6167dd 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]
