]> granicus.if.org Git - libvpx/blobdiff - vpxdec.c
Merge "vp9: SVC: Modify conditon for setting downsample filter type."
[libvpx] / vpxdec.c
index fa85ac8587c23815d856aff7387fe705fc82fe81..6db2afb4aeca1e7a2138858aa44c582d7dd7f96b 100644 (file)
--- 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,