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:
2d9b5ae
)
aacenc: correctly zero prediction_used array
author
Rostislav Pehlivanov
<atomnuker@gmail.com>
Sat, 17 Oct 2015 01:14:10 +0000
(
02:14
+0100)
committer
Rostislav Pehlivanov
<atomnuker@gmail.com>
Sat, 17 Oct 2015 01:31:20 +0000
(
02:31
+0100)
An oversight, probably because of copy-pasting the TNS line.
libavcodec/aacenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/aacenc.c
b/libavcodec/aacenc.c
index
fca5b0e
..
546d4f5
100644
(file)
--- a/
libavcodec/aacenc.c
+++ b/
libavcodec/aacenc.c
@@
-659,7
+659,7
@@
static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
sce = &cpe->ch[ch];
coeffs[ch] = sce->coeffs;
sce->ics.predictor_present = 0;
- memset(
&
sce->ics.prediction_used, 0, sizeof(sce->ics.prediction_used));
+ memset(sce->ics.prediction_used, 0, sizeof(sce->ics.prediction_used));
memset(&sce->tns, 0, sizeof(TemporalNoiseShaping));
for (w = 0; w < 128; w++)
if (sce->band_type[w] > RESERVED_BT)