From 25c1bada7232e3b873928dfc59fb8e7a039e62ad Mon Sep 17 00:00:00 2001 From: Jerome Jiang Date: Thu, 20 Apr 2017 14:48:22 -0700 Subject: [PATCH] Fix the decoder seg fault when frame is corrupted. BUG=webm:1399 Change-Id: I1e006e0260d9b56a4d2273659ca19b86c69c474b --- vpxdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vpxdec.c b/vpxdec.c index fa85ac8..6db2afb 100644 --- a/vpxdec.c +++ b/vpxdec.c @@ -977,7 +977,7 @@ static int main_loop(int argc, const char **argv_) { 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, -- 2.7.4