shithub: libvpx

Download patch

ref: 606c6479c51bba5bad1b50fdbe682aab4b36e2ae
parent: 7798aef50baed990437970ffc51c955174d4a386
author: Yaowu Xu <yaowu@google.com>
date: Thu Nov 8 11:22:54 EST 2012

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

only call decoding when encoder produce compressed data

Change-Id: I1840762246afaaad76db6c6d29032ad15aa38afd

--- 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));
       }