]> granicus.if.org Git - libvpx/commitdiff
vpxdec: Disable writing of Y4M header when --md5 argument is specified.
authorDmitry Kovalev <dkovalev@google.com>
Wed, 22 Jan 2014 19:53:49 +0000 (11:53 -0800)
committerDmitry Kovalev <dkovalev@google.com>
Wed, 22 Jan 2014 19:53:49 +0000 (11:53 -0800)
Change-Id: I2380b1b80f48496732b69c8255a485024d375f0f

vpxdec.c

index deb307eb87827905532ef1bd609290942e5bcc0c..fc344a1620c6a5f13ff1ebdcbac63ade57bcbeb7 100644 (file)
--- a/vpxdec.c
+++ b/vpxdec.c
@@ -840,7 +840,7 @@ int main_loop(int argc, const char **argv_) {
       show_progress(frame_in, frame_out, dx_time);
 
     if (!noblit) {
-      if (frame_out == 1 && img && use_y4m && single_file)
+      if (frame_out == 1 && img && single_file && !do_md5 && use_y4m)
         y4m_write_file_header(outfile,
                               vpx_input_ctx.width, vpx_input_ctx.height,
                               &vpx_input_ctx.framerate, img->fmt);