diff options
author | Anton Khirnov <anton@khirnov.net> | 2017-01-09 20:01:02 +0300 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-04-10 15:16:39 +0300 |
commit | 665e5b0fba41a8bae2269d9ce8929a24002e5907 (patch) | |
tree | 397136c747d006cdb54f4ff126cdca94f0297f77 /libavcodec/mimic.c | |
parent | 7385ffbd31a47a5dd5e66b9d3ba48a4474bbd180 (diff) |
lavc: replace AVCodecInternal.allocate_progress with an internal cap
This is a constant codec property, so a capability flag is more appropriate.
Diffstat (limited to 'libavcodec/mimic.c')
-rw-r--r-- | libavcodec/mimic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/mimic.c b/libavcodec/mimic.c index 1d463e9962..8e3a77a334 100644 --- a/libavcodec/mimic.c +++ b/libavcodec/mimic.c @@ -139,8 +139,6 @@ static av_cold int mimic_decode_init(AVCodecContext *avctx) MimicContext *ctx = avctx->priv_data; int ret, i; - avctx->internal->allocate_progress = 1; - ctx->prev_index = 0; ctx->cur_index = 15; @@ -481,4 +479,5 @@ AVCodec ff_mimic_decoder = { .capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, .update_thread_context = ONLY_IF_THREADS_ENABLED(mimic_decode_update_thread_context), .init_thread_copy = ONLY_IF_THREADS_ENABLED(mimic_init_thread_copy), + .caps_internal = FF_CODEC_CAP_ALLOCATE_PROGRESS, }; |