[FFmpeg-soc] [soc]: r1686 - eac3/eac3dec.c

jbr subversion at mplayerhq.hu
Sat Dec 29 05:45:58 CET 2007


Author: jbr
Date: Sat Dec 29 05:45:58 2007
New Revision: 1686

Log:
another nested if

Modified:
   eac3/eac3dec.c

Modified: eac3/eac3dec.c
==============================================================================
--- eac3/eac3dec.c	(original)
+++ eac3/eac3dec.c	Sat Dec 29 05:45:58 2007
@@ -984,8 +984,7 @@ static int parse_audblk(EAC3Context *s, 
         }
     }
     /* Rematrixing operation in the 2/0 mode */
-    if (s->channel_mode == AC3_CHMODE_STEREO) { /* if in 2/0 mode */
-        if (!blk || get_bits1(gbc)) {
+    if (s->channel_mode == AC3_CHMODE_STEREO && (!blk || get_bits1(gbc))) {
             /* nrematbnds determined from cplinu, ecplinu, spxinu, cplbegf, ecplbegf and spxbegf */
             // TODO spx in one channel
             int end = (s->cpl_in_use[blk] || s->spxinu) ?
@@ -994,7 +993,6 @@ static int parse_audblk(EAC3Context *s, 
                 s->rematflg[bnd] = get_bits1(gbc);
             }
             s->nrematbnds = bnd;
-        }
     }
     /* Channel bandwidth code */
     for (ch = 1; ch <= s->fbw_channels; ch++) {



More information about the FFmpeg-soc mailing list