shithub: libvpx

Download patch

ref: 97dd7342b8591627b7dd07cb79f91b544213caa9
parent: 111ca4213355ac4edd10b3c14461096d56e3f3d0
author: Ronald S. Bultje <rbultje@google.com>
date: Mon Mar 4 09:12:49 EST 2013

vpxenc: actually report mismatch on stderr.

Because ctx->err is not set in that case, it will not report the error
on stderr.

Change-Id: Ifacbf5a03e676fd56522b03c0281d6c723c563ee

--- a/vpxenc.c
+++ b/vpxenc.c
@@ -2442,6 +2442,7 @@
     int y[2], u[2], v[2];
     find_mismatch(&stream->ref_enc.img, &stream->ref_dec.img,
                   y, u, v);
+    stream->decoder.err = 1;
     warn_or_exit_on_error(&stream->decoder, fatal == TEST_DECODE_FATAL,
                           "Stream %d: Encode/decode mismatch on frame %d"
                           " at Y[%d, %d], U[%d, %d], V[%d, %d]",
--