mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-19 05:49:09 +02:00
avcodec/hevc/refs: ensure LCEVC SEI payloads are exported as frame side data before get_buffer() calls
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
dbbf9a5ff7
commit
d250cc02e2
@ -86,6 +86,19 @@ static HEVCFrame *alloc_frame(HEVCContext *s, HEVCLayerContext *l)
|
||||
if (frame->f)
|
||||
continue;
|
||||
|
||||
ret = ff_progress_frame_alloc(s->avctx, &frame->tf);
|
||||
if (ret < 0)
|
||||
return NULL;
|
||||
|
||||
// Add LCEVC SEI metadata here, as it's needed in get_buffer()
|
||||
if (s->sei.common.lcevc.info) {
|
||||
HEVCSEILCEVC *lcevc = &s->sei.common.lcevc;
|
||||
ret = ff_frame_new_side_data_from_buf(s->avctx, frame->tf.f,
|
||||
AV_FRAME_DATA_LCEVC, &lcevc->info);
|
||||
if (ret < 0)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
ret = ff_progress_frame_get_buffer(s->avctx, &frame->tf,
|
||||
AV_GET_BUFFER_FLAG_REF);
|
||||
if (ret < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user