aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-12 01:22:00 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-16 14:54:58 +0200
commit9c9458115e9b64f4b2477d71dbbdf235c179e999 (patch)
treeefc290ccc79a9f2f453f94ca6f1eafacf2f68fde
parent4dae62f7081eda648adb76d47aef90e872606905 (diff)
downloadffmpeg-9c9458115e9b64f4b2477d71dbbdf235c179e999.tar.gz
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>
-rw-r--r--libavcodec/vp3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index 5002800ef2..272dd89117 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -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_finish_setup(avctx);
memset(s->all_fragments, 0, s->fragment_count * sizeof(Vp3Fragment));
- ff_thread_finish_setup(avctx);
if (s->version < 2) {
if ((ret = unpack_superblocks(s, &gb)) < 0) {