OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca0f1e5
)
When calculating AAC quantized band cost, don't leave garbage in the bit count
author
Alex Converse
<alex.converse@gmail.com>
Thu, 16 Jul 2009 22:20:17 +0000
(22:20 +0000)
committer
Alex Converse
<alex.converse@gmail.com>
Thu, 16 Jul 2009 22:20:17 +0000
(22:20 +0000)
for the 0 codebook.
Originally committed as revision 19444 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/aaccoder.c
patch
|
blob
|
history
diff --git
a/libavcodec/aaccoder.c
b/libavcodec/aaccoder.c
index
f4ae130
..
252b359
100644
(file)
--- a/
libavcodec/aaccoder.c
+++ b/
libavcodec/aaccoder.c
@@
-124,6
+124,8
@@
static float quantize_band_cost(struct AACEncContext *s, const float *in,
if (!cb) {
for (i = 0; i < size; i++)
cost += in[i]*in[i]*lambda;
+ if (bits)
+ *bits = 0;
return cost;
}
#ifndef USE_REALLY_FULL_SEARCH