projects
/
platform
/
upstream
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fe0e55
)
Remove duplicate calls for set_frame_size in 1 pass mode.
author
Marco
<marpan@chromium.org>
Thu, 11 Jun 2015 01:26:04 +0000
(18:26 -0700)
committer
Marco
<marpan@chromium.org>
Tue, 16 Jun 2015 16:57:13 +0000
(09:57 -0700)
set_frame_size() is being called twice, once before entering
encode_encode_frame_to_data_rate(), and once again in that function.
No need to call it twice for one-pass mode.
Change-Id: I5fabaf0a90482d4f42cd89ef7ae1402c31aec600
vp9/encoder/vp9_encoder.c
patch
|
blob
|
history
diff --git
a/vp9/encoder/vp9_encoder.c
b/vp9/encoder/vp9_encoder.c
index
ba38d64
..
ecd60d7
100644
(file)
--- a/
vp9/encoder/vp9_encoder.c
+++ b/
vp9/encoder/vp9_encoder.c
@@
-4165,7
+4165,7
@@
int vp9_get_compressed_data(VP9_COMP *cpi, unsigned int *frame_flags,
(is_two_pass_svc(cpi) &&
cpi->svc.encode_empty_frame_state != ENCODING))) {
vp9_rc_get_second_pass_params(cpi);
- } else {
+ } else
if (oxcf->pass == 1)
{
set_frame_size(cpi);
}