commit | 606c6479c51bba5bad1b50fdbe682aab4b36e2ae | [log] [tgz] |
---|---|---|
author | Yaowu Xu <yaowu@google.com> | Thu Nov 08 16:22:54 2012 -0800 |
committer | Yaowu Xu <yaowu@google.com> | Thu Nov 08 16:22:54 2012 -0800 |
tree | 541173561d16a812ee8c39d137855289daf69f62 | |
parent | 7798aef50baed990437970ffc51c955174d4a386 [diff] |
fix a crash in 2-pass encoding with test-decode on only call decoding when encoder produce compressed data Change-Id: I1840762246afaaad76db6c6d29032ad15aa38afd
diff --git a/vpxenc.c b/vpxenc.c index 6688231..33dd805 100644 --- a/vpxenc.c +++ b/vpxenc.c
@@ -2418,7 +2418,7 @@ got_data = 0; FOREACH_STREAM(get_cx_data(stream, &global, &got_data)); - if (global.test_decode) + if (got_data && global.test_decode) FOREACH_STREAM(test_decode(stream, frames_in)); }