PR #22829 opened by James Almer (jamrial) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22829 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22829.patch
Frame side data unfortunately lacks padding, which CBS needs, so we can't reuse the existing AVBufferRef. >From f43833c97e6768e348bbd9e78c8c4e5aef41ee05 Mon Sep 17 00:00:00 2001 From: James Almer <[email protected]> Date: Wed, 15 Apr 2026 15:51:57 -0300 Subject: [PATCH] avcodec/lcevc: make CBS reallocate the LCEVC payload Frame side data unfortunately lacks padding, which CBS needs, so we can't reuse the existing AVBufferRef. Signed-off-by: James Almer <[email protected]> --- libavcodec/lcevcdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/lcevcdec.c b/libavcodec/lcevcdec.c index 013cae9147..ff3bffb618 100644 --- a/libavcodec/lcevcdec.c +++ b/libavcodec/lcevcdec.c @@ -365,7 +365,7 @@ int ff_lcevc_parse_frame(FFLCEVCContext *lcevc, const AVFrame *frame, AVFrameSideData *sd = av_frame_get_side_data(frame, AV_FRAME_DATA_LCEVC); int ret; - ret = ff_cbs_read(lcevc->cbc, lcevc->frag, sd->buf, sd->data, sd->size); + ret = ff_cbs_read(lcevc->cbc, lcevc->frag, NULL, sd->data, sd->size); if (ret < 0) { av_log(logctx, AV_LOG_ERROR, "Failed to parse Access Unit.\n"); goto end; -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
