commit | f0d04246f40b3f87d361451f9ebc2feb7b5318de | [log] [tgz] |
---|---|---|
author | Andreas Huber <andih@google.com> | Thu Dec 10 12:21:57 2009 -0800 |
committer | Andreas Huber <andih@google.com> | Thu Dec 10 12:21:57 2009 -0800 |
tree | 52da725d9613003613ca313a6ec0976ba513c619 | |
parent | 159f0015418955501d8cf2744b0393db2e73f394 [diff] |
Don't count empty buffers when computing the frame rate.
diff --git a/cmds/stagefright/stagefright.cpp b/cmds/stagefright/stagefright.cpp index 76ec54b..376f3d9 100644 --- a/cmds/stagefright/stagefright.cpp +++ b/cmds/stagefright/stagefright.cpp
@@ -173,7 +173,7 @@ break; } - if ((n++ % 16) == 0) { + if (buffer->range_length() > 0 && (n++ % 16) == 0) { printf("."); fflush(stdout); }