diff mbox series

[FFmpeg-devel,13/18] avcodec/vp8: Don't use avctx->execute2 for VP7

Message ID AS8P250MB0744D6066F910098A3E2B3CC8F429@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State New
Headers show
Series [FFmpeg-devel,01/18] avcodec/vp8: Disable segmentation for VP7 | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 10, 2022, 1:07 a.m. UTC
Our decoder does not support slice-threading at all.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
vp7_decode_mb_row_sliced() btw can return errors which are currently
ignored (both before and after this patch).

 libavcodec/vp8.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index 1f0deddb1a..a7df4601ef 100644
--- a/libavcodec/vp8.c
+++ b/libavcodec/vp8.c
@@ -2636,8 +2636,7 @@  int vp78_decode_mb_row_sliced(AVCodecContext *avctx, void *tdata, int jobnr,
     return 0;
 }
 
-static int vp7_decode_mb_row_sliced(AVCodecContext *avctx, void *tdata,
-                                    int jobnr, int threadnr)
+static int vp7_decode_mb_row_sliced(AVCodecContext *avctx, void *tdata)
 {
     return vp78_decode_mb_row_sliced(avctx, tdata, 0, 0, IS_VP7);
 }
@@ -2804,8 +2803,7 @@  int vp78_decode_frame(AVCodecContext *avctx, AVFrame *rframe, int *got_frame,
         s->mv_bounds.mv_min.y   = -MARGIN;
         s->mv_bounds.mv_max.y   = ((s->mb_height - 1) << 6) + MARGIN;
         if (is_vp7) {
-            avctx->execute2(avctx, vp7_decode_mb_row_sliced, s->thread_data, NULL,
-                            num_jobs);
+            vp7_decode_mb_row_sliced(avctx, s->thread_data);
         } else {
             for (unsigned i = 0; i < MAX_THREADS; i++) {
                 VP8ThreadData *td = &s->thread_data[i];