aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Guilbert <tguilbert@google.com>2017-03-10 00:15:39 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-20 03:41:32 +0200
commitb27bcc32c7ffea8ae81d6edbb9c101bd21dd91d9 (patch)
tree59ca4f8536cd80a6966eb35d5b9be1dd9fe1c76a
parent678dd7cf209556f1e1d5b291ec391189e2d84ee2 (diff)
downloadffmpeg-b27bcc32c7ffea8ae81d6edbb9c101bd21dd91d9.tar.gz
avcodec/vp8: Fix hang with slice threads
Fixes: 447860.webm Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 9bbc73ae9fdedc8789b2b6be65279e9a0ecd7090) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/vp8.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index 1de604dafc..11a275d378 100644
--- a/libavcodec/vp8.c
+++ b/libavcodec/vp8.c
@@ -2507,8 +2507,10 @@ int vp78_decode_mb_row_sliced(AVCodecContext *avctx, void *tdata, int jobnr,
for (mb_y = jobnr; mb_y < s->mb_height; mb_y += num_jobs) {
td->thread_mb_pos = mb_y << 16;
ret = s->decode_mb_row_no_filter(avctx, tdata, jobnr, threadnr);
- if (ret < 0)
+ if (ret < 0) {
+ update_pos(td, s->mb_height, INT_MAX & 0xFFFF);
return ret;
+ }
if (s->deblock_filter)
s->filter_mb_row(avctx, tdata, jobnr, threadnr);
update_pos(td, mb_y, INT_MAX & 0xFFFF);