ref: 25c1bada7232e3b873928dfc59fb8e7a039e62ad
parent: 30ef50b522c7b568921ca3e37bcc71ca7cd52972
author: Jerome Jiang <jianj@google.com>
date: Thu Apr 20 10:48:22 EDT 2017
Fix the decoder seg fault when frame is corrupted. BUG=webm:1399 Change-Id: I1e006e0260d9b56a4d2273659ca19b86c69c474b
--- a/vpxdec.c
+++ b/vpxdec.c
@@ -977,7 +977,7 @@
if (do_md5) {
update_image_md5(img, planes, &md5_ctx);
} else {
- write_image_file(img, planes, outfile);
+ if (!corrupted) write_image_file(img, planes, outfile);
}
} else {
generate_filename(outfile_pattern, outfile_name, PATH_MAX, img->d_w,