avcodec/vp3: Move work after ff_thread_finish_setup
all_fragments is not synced between threads; resetting it can wait. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
4dae62f708
commit
9c9458115e
@ -2757,9 +2757,9 @@ static int vp3_decode_frame(AVCodecContext *avctx, AVFrame *frame,
|
|||||||
ff_thread_report_progress(&s->last_frame, INT_MAX, 0);
|
ff_thread_report_progress(&s->last_frame, INT_MAX, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ff_thread_finish_setup(avctx);
|
||||||
|
|
||||||
memset(s->all_fragments, 0, s->fragment_count * sizeof(Vp3Fragment));
|
memset(s->all_fragments, 0, s->fragment_count * sizeof(Vp3Fragment));
|
||||||
ff_thread_finish_setup(avctx);
|
|
||||||
|
|
||||||
if (s->version < 2) {
|
if (s->version < 2) {
|
||||||
if ((ret = unpack_superblocks(s, &gb)) < 0) {
|
if ((ret = unpack_superblocks(s, &gb)) < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user