[FFmpeg-cvslog] avcodec/libdav1d: respect side data preference
Niklas Haas
git at videolan.org
Fri Mar 8 09:06:52 EET 2024
ffmpeg | branch: master | Niklas Haas <git at haasn.dev> | Mon Feb 19 12:46:21 2024 +0100| [0b7aefe698bca3b01861ebbcc415ca5b17b5051f] | committer: Anton Khirnov
avcodec/libdav1d: respect side data preference
Signed-off-by: Anton Khirnov <anton at khirnov.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0b7aefe698bca3b01861ebbcc415ca5b17b5051f
---
libavcodec/libdav1d.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libavcodec/libdav1d.c b/libavcodec/libdav1d.c
index 79478ae893..fdc87d396c 100644
--- a/libavcodec/libdav1d.c
+++ b/libavcodec/libdav1d.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list