aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wmaenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-02-06 22:20:55 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-02-06 22:20:55 +0000
commit21ac1d47d136fbf95613189a8ec9fd6efbea9048 (patch)
tree0ea6e0345787bd84b9659cb2f5ff823a5a65df02 /libavcodec/wmaenc.c
parentd474299a0db71f5e66d24bb11f505b2f55ce0292 (diff)
downloadffmpeg-21ac1d47d136fbf95613189a8ec9fd6efbea9048.tar.gz
10l use of uninitalized var
Originally committed as revision 7863 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wmaenc.c')
-rw-r--r--libavcodec/wmaenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/wmaenc.c b/libavcodec/wmaenc.c
index c09ba4d679..6c687957c4 100644
--- a/libavcodec/wmaenc.c
+++ b/libavcodec/wmaenc.c
@@ -179,7 +179,7 @@ static int encode_block(WMADecodeContext *s, float (*src_coefs)[BLOCK_MAX_SIZE],
}
for(ch = 0; ch < s->nb_channels; ch++) {
- if (s->channel_coded[ch]) {
+ if (s->channel_coded[ch]= 1) { //FIXME
init_exp(s, ch, fixed_exp);
}
}
@@ -213,7 +213,7 @@ static int encode_block(WMADecodeContext *s, float (*src_coefs)[BLOCK_MAX_SIZE],
v = 0;
for(ch = 0; ch < s->nb_channels; ch++) {
- int a = s->channel_coded[ch]=1; //FIXME
+ int a = s->channel_coded[ch];
put_bits(&s->pb, 1, a);
v |= a;
}