History

avcodec/libdav1d: respect side data preference

Niklas Haas committed 2 years ago

Commit 0b7aefe1 parent 133cbbe1 file · +3 −2Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/libdav1d.c+3−2
@@ -541,8 +541,9 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame) · 540 unmodified lines
541541 if (!res)
542542 break;
543543
544− if (!av_frame_new_side_data_from_buf(frame, AV_FRAME_DATA_A53_CC, buf))
545− av_buffer_unref(&buf);
544+ res = ff_frame_new_side_data_from_buf(c, frame, AV_FRAME_DATA_A53_CC, &buf, NULL);
545+ if (res < 0)
546+ goto fail;
546547
547548 c->properties |= FF_CODEC_PROPERTY_CLOSED_CAPTIONS;
548549 break;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t