ref: 2c677a2afec9be206a9ec3a4f273a557054052e6
parent: 9364fc04f1e4e46e3e4c51560b532aab6e1649bc
author: James Zern <jzern@google.com>
date: Tue Jul 10 16:52:22 EDT 2018
decode_test_driver: break decompress loop on error avoids duplicate errors should DecompressedFrameHook fail and a potential end-less loop should dec_iter fail to advance. Change-Id: Ifb2673d02188a8aad75cda8bb960bb56fe70d218
--- a/test/decode_test_driver.cc
+++ b/test/decode_test_driver.cc
@@ -98,7 +98,7 @@
const vpx_image_t *img = NULL;
// Get decompressed data
- while ((img = dec_iter.Next())) {
+ while (!::testing::Test::HasFailure() && (img = dec_iter.Next())) {
DecompressedFrameHook(*img, video->frame_number());
}
}