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

Function ff_progress_frame_alloc

libavcodec/decode.c:1888–1900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1886}
1887
1888int ff_progress_frame_alloc(AVCodecContext *avctx, ProgressFrame *f)
1889{
1890 AVRefStructPool *pool = avctx->internal->progress_frame_pool;
1891
1892 av_assert1(!f->f && !f->progress);
1893
1894 f->progress = av_refstruct_pool_get(pool);
1895 if (!f->progress)
1896 return AVERROR(ENOMEM);
1897
1898 f->f = f->progress->f;
1899 return 0;
1900}
1901
1902int ff_progress_frame_get_buffer(AVCodecContext *avctx, ProgressFrame *f, int flags)
1903{

Callers 2

alloc_frameFunction · 0.85

Calls 1

av_refstruct_pool_getFunction · 0.85

Tested by

no test coverage detected