Unified · Split
| @@ -541,8 +541,9 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame) · 540 unmodified lines | |||
| 541 | if (!res) | 541 | if (!res) |
| 542 | break; | 542 | break; |
| 543 | 543 | ||
| 544 | if (!av_frame_new_side_data_from_buf(frame, AV_FRAME_DATA_A53_CC, buf)) | 544 | res = ff_frame_new_side_data_from_buf(c, frame, AV_FRAME_DATA_A53_CC, &buf, NULL); |
| 545 | av_buffer_unref(&buf); | 545 | if (res < 0) |
| 546 | goto fail; | ||
| 546 | 547 | ||
| 547 | c->properties |= FF_CODEC_PROPERTY_CLOSED_CAPTIONS; | 548 | c->properties |= FF_CODEC_PROPERTY_CLOSED_CAPTIONS; |
| 548 | break; | 549 | break; |