fix decoding of coupling leak info for normal AC-3
authorJustin Ruggles <justin.ruggles@gmail.com>
Sat, 23 Aug 2008 03:30:08 +0000 (03:30 +0000)
committerJustin Ruggles <justin.ruggles@gmail.com>
Sat, 23 Aug 2008 03:30:08 +0000 (03:30 +0000)
Originally committed as revision 14913 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/ac3dec.c

index bca4009..508d698 100644 (file)
@@ -837,7 +837,7 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)
                 s->channel_in_cpl[ch] = 0;
                 s->first_cpl_coords[ch] = 1;
             }
-            s->first_cpl_leak = 1;
+            s->first_cpl_leak = s->eac3;
             s->phase_flags_in_use = 0;
         }
     } else if (!s->eac3) {