[FFmpeg-soc] [soc]: r5334 - wmapro/wmaprodec.c

faust3 subversion at mplayerhq.hu
Sat Aug 29 16:39:31 CEST 2009


Author: faust3
Date: Sat Aug 29 16:39:31 2009
New Revision: 5334

Log:
make the condition for channel_mask = 1 depend on min_channel_len

Modified:
   wmapro/wmaprodec.c

Modified: wmapro/wmaprodec.c
==============================================================================
--- wmapro/wmaprodec.c	Sat Aug 29 16:26:24 2009	(r5333)
+++ wmapro/wmaprodec.c	Sat Aug 29 16:39:31 2009	(r5334)
@@ -556,7 +556,7 @@ static int decode_tilehdr(WMA3DecodeCont
             /** For every channel with the minimum length, 1 bit
                 might be transmitted that informs us if the channel
                 contains a subframe with the next subframe_len. */
-            if (channels_for_cur_subframe == 1 || min_samples == missing_samples) {
+            if (channels_for_cur_subframe == 1 || (min_channel_len == s->samples_per_frame - s->min_samples_per_subframe)) {
                 channel_mask = -1;
             } else {
                 channel_mask = get_bits(&s->gb, channels_for_cur_subframe);


More information about the FFmpeg-soc mailing list