Propagate error from worker to main thread during CDEF MT
This change sets a longjmp target in cdef_sb_row_worker_hook()
to propagate error from worker threads to the main thread
during CDEF multi-threading. It also ensures that other
threads stop processing further if any of the threads
encounter an error.
Bug: aomedia:3276
Change-Id: Idac64249346f9107d8009e6dd9c7d7c33fbbae88
diff --git a/av1/decoder/decodeframe.c b/av1/decoder/decodeframe.c
index a8d7ed0..e4e70a9 100644
--- a/av1/decoder/decodeframe.c
+++ b/av1/decoder/decodeframe.c
@@ -5241,6 +5241,7 @@
MACROBLOCKD *const xd = &pbi->dcb.xd;
const int tile_count_tg = end_tile - start_tile + 1;
+ xd->error_info = cm->error;
if (initialize_flag) setup_frame_info(pbi);
const int num_planes = av1_num_planes(cm);