projects
/
profile
/
ivi
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
eacaabc
bb0ca87
)
Merge "guard against space/time distortion"
author
John Koleszar
<jkoleszar@google.com>
Wed, 29 Jun 2011 18:36:51 +0000
(11:36 -0700)
committer
Code Review
<code-review@webmproject.org>
Wed, 29 Jun 2011 18:36:51 +0000
(11:36 -0700)
1
2
vpxenc.c
patch
|
diff1
|
diff2
|
blob
|
history
diff --cc
vpxenc.c
index
82f9071
,
775a22b
..
042f07b
---
1
/
vpxenc.c
---
2
/
vpxenc.c
+++ b/
vpxenc.c
@@@
-1347,8
-1342,10
+1347,10
@@@
static void update_rate_histogram(struc
if(now < cfg->rc_buf_initial_sz)
return;
+ then = now;
+
/* Sum the size over the past rc_buf_sz ms */
- for(i = hist->frames; i > 0; i--)
+ for(i = hist->frames; i > 0
&& hist->frames - i < hist->samples
; i--)
{
int i_idx = (i-1) % hist->samples;