From 2d5174fc46de0cc6452290b901e0a68b729a6704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Petten=C3=B2?= Date: Thu, 2 Oct 2008 19:20:11 +0000 Subject: [PATCH] =?UTF-8?q?Intel=20C=20compiler=20warns=20on=20this=20assi?= =?UTF-8?q?gnment=20in=20this=20if(),=20probably=20because=20it's=20being?= =?UTF-8?q?=20assigned=20as=20a=20constant.=20To=20avoid=20a=20spurious=20?= =?UTF-8?q?warning,=20split=20it=20into=20two=20instructions,=20which=20sh?= =?UTF-8?q?ould=20also=20make=20it=20more=20logical=20once=20the=20FIXME?= =?UTF-8?q?=20is=20resolved.=20patch=20by=20Diego=20'Flameeyes'=20Petten?= =?UTF-8?q?=C3=B2=20%flameeyes=20A=20gmail=20P=20com%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 15525 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/wmaenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/wmaenc.c b/libavcodec/wmaenc.c index 4558947cb3..195c2702c6 100644 --- a/libavcodec/wmaenc.c +++ b/libavcodec/wmaenc.c @@ -178,7 +178,8 @@ static int encode_block(WMACodecContext *s, float (*src_coefs)[BLOCK_MAX_SIZE], } for(ch = 0; ch < s->nb_channels; ch++) { - if ((s->channel_coded[ch]= 1)) { //FIXME only set channel_coded when needed, instead of always + s->channel_coded[ch] = 1; //FIXME only set channel_coded when needed, instead of always + if (s->channel_coded[ch]) { init_exp(s, ch, fixed_exp); } }