MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / ff_attach_decode_data

Function ff_attach_decode_data

libavcodec/decode.c:1650–1664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1648}
1649
1650int 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
1666static int update_frame_props(AVCodecContext *avctx, AVFrame *frame)
1667{

Callers 4

ff_get_bufferFunction · 0.85

Calls 2

av_refstruct_unrefFunction · 0.85
av_refstruct_alloc_extFunction · 0.85

Tested by

no test coverage detected