diff options
author | Niklas Haas <git@haasn.dev> | 2024-02-17 21:39:13 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-03-08 07:37:56 +0100 |
commit | 01056078ed4d2aef0b880f686d5eb8fce0b823da (patch) | |
tree | a2c2afbf18335f6ff6159a1a8e2abcec2de79f66 /libavcodec/av1dec.c | |
parent | 6dd832673ba7b9d0dd63f5632a9b18a3e5168a62 (diff) | |
download | ffmpeg-01056078ed4d2aef0b880f686d5eb8fce0b823da.tar.gz |
avcodec/av1dec: respect side data preference
Diffstat (limited to 'libavcodec/av1dec.c')
-rw-r--r-- | libavcodec/av1dec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index 704b9d6298..af80ee0b17 100644 --- a/libavcodec/av1dec.c +++ b/libavcodec/av1dec.c @@ -954,8 +954,9 @@ static int export_itut_t35(AVCodecContext *avctx, AVFrame *frame, if (!ret) break; - if (!av_frame_new_side_data_from_buf(frame, AV_FRAME_DATA_A53_CC, buf)) - av_buffer_unref(&buf); + ret = ff_frame_new_side_data_from_buf(avctx, frame, AV_FRAME_DATA_A53_CC, &buf, NULL); + if (ret < 0) + return ret; avctx->properties |= FF_CODEC_PROPERTY_CLOSED_CAPTIONS; break; |