| 1648 | } |
| 1649 | |
| 1650 | int ff_attach_decode_data(AVFrame *frame) |
| 1651 | { |
| 1652 | FrameDecodeData *fdd; |
| 1653 | |
| 1654 | av_assert1(!frame->private_ref); |
| 1655 | av_refstruct_unref(&frame->private_ref); |
| 1656 | |
| 1657 | fdd = av_refstruct_alloc_ext(sizeof(*fdd), 0, NULL, decode_data_free); |
| 1658 | if (!fdd) |
| 1659 | return AVERROR(ENOMEM); |
| 1660 | |
| 1661 | frame->private_ref = fdd; |
| 1662 | |
| 1663 | return 0; |
| 1664 | } |
| 1665 | |
| 1666 | static int update_frame_props(AVCodecContext *avctx, AVFrame *frame) |
| 1667 | { |
no test coverage detected