[FFmpeg-devel] [PATCH 13/18] avcodec/vp8: Don't use avctx->execute2 for VP7
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Sat Sep 10 04:07:24 EEST 2022
Our decoder does not support slice-threading at all.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at 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 --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];
--
2.34.1
More information about the ffmpeg-devel
mailing list