summaryrefslogtreecommitdiff
path: root/vp8/decoder/decodeframe.c
diff options
context:
space:
mode:
authorJerome Jiang <jianj@google.com>2019-01-08 10:51:54 -0800
committerJerome Jiang <jianj@google.com>2019-01-10 12:55:06 -0800
commit7be8d2df6c1c224a96b75d8f2ed66df7cbd0bb48 (patch)
treee298a6eab8711d0b7823d95babc36892bcdf965e /vp8/decoder/decodeframe.c
parentc1d523d86080b1972ce17e290dae2acb06f990e6 (diff)
downloadlibvpx-7be8d2df6c1c224a96b75d8f2ed66df7cbd0bb48.tar
libvpx-7be8d2df6c1c224a96b75d8f2ed66df7cbd0bb48.tar.gz
libvpx-7be8d2df6c1c224a96b75d8f2ed66df7cbd0bb48.tar.bz2
libvpx-7be8d2df6c1c224a96b75d8f2ed66df7cbd0bb48.zip
vp8 dec: Add flag to bring up threads.
Instead of creating a new decoder instance when restarting all threads after they were shut down, re-create threads on the new flag. BUG=webm:1577 Change-Id: I6272ecaa1b586afdaa5ed8d6eab80aff8f5eb673
Diffstat (limited to 'vp8/decoder/decodeframe.c')
-rw-r--r--vp8/decoder/decodeframe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vp8/decoder/decodeframe.c b/vp8/decoder/decodeframe.c
index 617abf77c..650d1d040 100644
--- a/vp8/decoder/decodeframe.c
+++ b/vp8/decoder/decodeframe.c
@@ -1222,6 +1222,7 @@ int vp8_decode_frame(VP8D_COMP *pbi) {
unsigned int thread;
if (vp8mt_decode_mb_rows(pbi, xd)) {
vp8_decoder_remove_threads(pbi);
+ pbi->restart_threads = 1;
vpx_internal_error(&pbi->common.error, VPX_CODEC_CORRUPT_FRAME, NULL);
}
vp8_yv12_extend_frame_borders(yv12_fb_new);