]> granicus.if.org Git - libvpx/commitdiff
vpxenc: actually report mismatch on stderr.
authorRonald S. Bultje <rbultje@google.com>
Mon, 4 Mar 2013 22:12:49 +0000 (14:12 -0800)
committerRonald S. Bultje <rbultje@google.com>
Tue, 5 Mar 2013 00:49:00 +0000 (16:49 -0800)
Because ctx->err is not set in that case, it will not report the error
on stderr.

Change-Id: Ifacbf5a03e676fd56522b03c0281d6c723c563ee

vpxenc.c

index 0df0a982ff929805f71bfbc2f605547b739cdde5..19e10820c79b54e61ff29403c080c7a24aee146f 100644 (file)
--- a/vpxenc.c
+++ b/vpxenc.c
@@ -2442,6 +2442,7 @@ static void test_decode(struct stream_state  *stream,
     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]",