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/vp3.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/vp3.c')
-rw-r--r-- | libavcodec/vp3.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index 2ae54255c6..b80a2e1c9d 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -2330,8 +2330,6 @@ static av_cold int vp3_decode_init(AVCodecContext *avctx) if (ret < 0) return ret; - avctx->internal->allocate_progress = 1; - if (avctx->codec_tag == MKTAG('V', 'P', '4', '0')) s->version = 3; else if (avctx->codec_tag == MKTAG('V', 'P', '3', '0')) @@ -3266,7 +3264,7 @@ AVCodec ff_theora_decoder = { .flush = vp3_decode_flush, .init_thread_copy = ONLY_IF_THREADS_ENABLED(vp3_init_thread_copy), .update_thread_context = ONLY_IF_THREADS_ENABLED(vp3_update_thread_context), - .caps_internal = FF_CODEC_CAP_EXPORTS_CROPPING, + .caps_internal = FF_CODEC_CAP_EXPORTS_CROPPING | FF_CODEC_CAP_ALLOCATE_PROGRESS, }; #endif @@ -3284,6 +3282,7 @@ AVCodec ff_vp3_decoder = { .flush = vp3_decode_flush, .init_thread_copy = ONLY_IF_THREADS_ENABLED(vp3_init_thread_copy), .update_thread_context = ONLY_IF_THREADS_ENABLED(vp3_update_thread_context), + .caps_internal = FF_CODEC_CAP_ALLOCATE_PROGRESS, }; #if CONFIG_VP4_DECODER @@ -3301,5 +3300,6 @@ AVCodec ff_vp4_decoder = { .flush = vp3_decode_flush, .init_thread_copy = ONLY_IF_THREADS_ENABLED(vp3_init_thread_copy), .update_thread_context = ONLY_IF_THREADS_ENABLED(vp3_update_thread_context), + .caps_internal = FF_CODEC_CAP_ALLOCATE_PROGRESS, }; #endif |