projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b9466b
)
alacenc : perform decorrelation only for stereo samples
author
Jai Menon
<jmenon86@gmail.com>
Fri, 22 Aug 2008 14:57:35 +0000
(14:57 +0000)
committer
Jai Menon
<jmenon86@gmail.com>
Fri, 22 Aug 2008 14:57:35 +0000
(14:57 +0000)
Originally committed as revision 14904 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/alacenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/alacenc.c
b/libavcodec/alacenc.c
index
85adb40
..
afa1ac6
100644
(file)
--- a/
libavcodec/alacenc.c
+++ b/
libavcodec/alacenc.c
@@
-330,7
+330,8
@@
static void write_compressed_frame(AlacEncodeContext *s)
int i, j;
/* only simple mid/side decorrelation supported as of now */
- alac_stereo_decorrelation(s);
+ if(s->avctx->channels == 2)
+ alac_stereo_decorrelation(s);
put_bits(&s->pbctx, 8, s->interlacing_shift);
put_bits(&s->pbctx, 8, s->interlacing_leftweight);