|
|
@ -2330,8 +2330,6 @@ static av_cold int vp3_decode_init(AVCodecContext *avctx) |
|
|
|
if (ret < 0) |
|
|
|
if (ret < 0) |
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|
|
|
|
|
|
|
|
|
avctx->internal->allocate_progress = 1; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (avctx->codec_tag == MKTAG('V', 'P', '4', '0')) |
|
|
|
if (avctx->codec_tag == MKTAG('V', 'P', '4', '0')) |
|
|
|
s->version = 3; |
|
|
|
s->version = 3; |
|
|
|
else if (avctx->codec_tag == MKTAG('V', 'P', '3', '0')) |
|
|
|
else if (avctx->codec_tag == MKTAG('V', 'P', '3', '0')) |
|
|
@ -3266,7 +3264,7 @@ AVCodec ff_theora_decoder = { |
|
|
|
.flush = vp3_decode_flush, |
|
|
|
.flush = vp3_decode_flush, |
|
|
|
.init_thread_copy = ONLY_IF_THREADS_ENABLED(vp3_init_thread_copy), |
|
|
|
.init_thread_copy = ONLY_IF_THREADS_ENABLED(vp3_init_thread_copy), |
|
|
|
.update_thread_context = ONLY_IF_THREADS_ENABLED(vp3_update_thread_context), |
|
|
|
.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 |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
@ -3284,6 +3282,7 @@ AVCodec ff_vp3_decoder = { |
|
|
|
.flush = vp3_decode_flush, |
|
|
|
.flush = vp3_decode_flush, |
|
|
|
.init_thread_copy = ONLY_IF_THREADS_ENABLED(vp3_init_thread_copy), |
|
|
|
.init_thread_copy = ONLY_IF_THREADS_ENABLED(vp3_init_thread_copy), |
|
|
|
.update_thread_context = ONLY_IF_THREADS_ENABLED(vp3_update_thread_context), |
|
|
|
.update_thread_context = ONLY_IF_THREADS_ENABLED(vp3_update_thread_context), |
|
|
|
|
|
|
|
.caps_internal = FF_CODEC_CAP_ALLOCATE_PROGRESS, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_VP4_DECODER |
|
|
|
#if CONFIG_VP4_DECODER |
|
|
@ -3301,5 +3300,6 @@ AVCodec ff_vp4_decoder = { |
|
|
|
.flush = vp3_decode_flush, |
|
|
|
.flush = vp3_decode_flush, |
|
|
|
.init_thread_copy = ONLY_IF_THREADS_ENABLED(vp3_init_thread_copy), |
|
|
|
.init_thread_copy = ONLY_IF_THREADS_ENABLED(vp3_init_thread_copy), |
|
|
|
.update_thread_context = ONLY_IF_THREADS_ENABLED(vp3_update_thread_context), |
|
|
|
.update_thread_context = ONLY_IF_THREADS_ENABLED(vp3_update_thread_context), |
|
|
|
|
|
|
|
.caps_internal = FF_CODEC_CAP_ALLOCATE_PROGRESS, |
|
|
|
}; |
|
|
|
}; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|