ref: 3ec56639bc46a5fb6c6161768f79e821155ff51e
parent: 3a08b033b0c20d0e21306eccfd0ba32149b2b91e
parent: 195172cf87f05a407ef7a718fdb19a79495eb529
author: Ronald S. Bultje <rbultje@google.com>
date: Mon Nov 12 03:35:14 EST 2012
Merge "Fix frame number on which the mismatch is reported in vpxenc." into experimental
--- a/vpxenc.c
+++ b/vpxenc.c
@@ -2240,7 +2240,7 @@
}
-static void test_decode(struct stream_state *stream, unsigned int frames_in) {
+static void test_decode(struct stream_state *stream) {
vpx_codec_control(&stream->encoder, VP8_COPY_REFERENCE, &stream->ref_enc);
ctx_exit_on_error(&stream->encoder, "Failed to get encoder reference frame");
vpx_codec_control(&stream->decoder, VP8_COPY_REFERENCE, &stream->ref_dec);
@@ -2250,8 +2250,8 @@
&& !compare_img(&stream->ref_enc.img, &stream->ref_dec.img)) {
/* TODO(jkoleszar): make fatal. */
warn("Stream %d: Encode/decode mismatch on frame %d",
- stream->index, frames_in);
- stream->mismatch_seen = frames_in;
+ stream->index, stream->frames_out);
+ stream->mismatch_seen = stream->frames_out;
}
}
@@ -2419,7 +2419,7 @@
FOREACH_STREAM(get_cx_data(stream, &global, &got_data));
if (got_data && global.test_decode)
- FOREACH_STREAM(test_decode(stream, frames_in));
+ FOREACH_STREAM(test_decode(stream));
}
fflush(stdout);
--
⑨