Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -472,12 +472,8 @@ static int librav1e_receive_packet(AVCodecContext *avctx, AVPacket *pkt) · 471 unmodified lines | ||
| 472 | 472 | |
| 473 | 473 | if (avctx->flags & AV_CODEC_FLAG_COPY_OPAQUE) { |
| 474 | 474 | fd->frame_opaque = frame->opaque; |
| 475 | − ret = av_buffer_replace(&fd->frame_opaque_ref, frame->opaque_ref); | |
| 476 | − if (ret < 0) { | |
| 477 | − frame_data_free(fd); | |
| 478 | − av_frame_unref(frame); | |
| 479 | − return ret; | |
| 480 | − } | |
| 475 | + fd->frame_opaque_ref = frame->opaque_ref; | |
| 476 | + frame->opaque_ref = NULL; | |
| 481 | 477 | } |
| 482 | 478 | |
| 483 | 479 | rframe = rav1e_frame_new(ctx->ctx); |