mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-16 23:54:39 +00:00
avcodec/libdav1d: respect side data preference
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
133cbbe31e
commit
0b7aefe698
@ -541,8 +541,9 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame)
|
||||
if (!res)
|
||||
break;
|
||||
|
||||
if (!av_frame_new_side_data_from_buf(frame, AV_FRAME_DATA_A53_CC, buf))
|
||||
av_buffer_unref(&buf);
|
||||
res = ff_frame_new_side_data_from_buf(c, frame, AV_FRAME_DATA_A53_CC, &buf, NULL);
|
||||
if (res < 0)
|
||||
goto fail;
|
||||
|
||||
c->properties |= FF_CODEC_PROPERTY_CLOSED_CAPTIONS;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user