[FFmpeg-cvslog] avcodec/h264_slice: insert LCEVC side data before get_buffer() call
James Almer
git at videolan.org
Thu May 15 21:26:53 EEST 2025
ffmpeg | branch: release/7.1 | James Almer <jamrial at gmail.com> | Mon Mar 24 13:51:15 2025 -0300| [7eaa8c110e830cb831781dad1bba8fe2365176fb] | committer: James Almer
avcodec/h264_slice: insert LCEVC side data before get_buffer() call
Otherwise it will not be taken into account or applied at all.
Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit 25b0a8e295749a60a238ba0d6fe7a3742937b6bb)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7eaa8c110e830cb831781dad1bba8fe2365176fb
---
libavcodec/h264_slice.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index 84595b1a8b..01c43a652e 100644
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -191,6 +191,13 @@ static int alloc_picture(H264Context *h, H264Picture *pic)
av_assert0(!pic->f->data[0]);
+ if (h->sei.common.lcevc.info) {
+ HEVCSEILCEVC *lcevc = &h->sei.common.lcevc;
+ ret = ff_frame_new_side_data_from_buf(h->avctx, pic->f, AV_FRAME_DATA_LCEVC, &lcevc->info);
+ if (ret < 0)
+ return ret;
+ }
+
pic->tf.f = pic->f;
ret = ff_thread_get_ext_buffer(h->avctx, &pic->tf,
pic->reference ? AV_GET_BUFFER_FLAG_REF : 0);
More information about the ffmpeg-cvslog
mailing list