Commit 606c6479 authored by Yaowu Xu's avatar Yaowu Xu
Browse files

fix a crash in 2-pass encoding with test-decode on

only call decoding when encoder produce compressed data

Change-Id: I1840762246afaaad76db6c6d29032ad15aa38afd
parent 7798aef5
......@@ -2418,7 +2418,7 @@ int main(int argc, const char **argv_) {
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));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment