shithub: libvpx

Download patch

ref: 15ee8a8c4579b1cdb9fd4a1624b0803ab285a731
parent: 997e54ea433b4d6293c58e6b2bcc001b66f727b0
parent: 25c1bada7232e3b873928dfc59fb8e7a039e62ad
author: Jerome Jiang <[email protected]>
date: Tue Apr 25 20:09:29 EDT 2017

Merge "Fix the decoder seg fault when frame is corrupted."

--- 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,