| 1886 | } |
| 1887 | |
| 1888 | int 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 | |
| 1902 | int ff_progress_frame_get_buffer(AVCodecContext *avctx, ProgressFrame *f, int flags) |
| 1903 | { |
no test coverage detected