[FFmpeg-soc] [soc]: r4410 - wmapro/wma3dec.c

faust3 subversion at mplayerhq.hu
Thu Jun 11 09:54:00 CEST 2009


Author: faust3
Date: Thu Jun 11 09:54:00 2009
New Revision: 4410

Log:
use MAX_SUBFRAMES define instead of hardcoding the number

Modified:
   wmapro/wma3dec.c

Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c	Thu Jun 11 09:50:25 2009	(r4409)
+++ wmapro/wma3dec.c	Thu Jun 11 09:54:00 2009	(r4410)
@@ -534,7 +534,7 @@ static int wma_decode_tilehdr(WMA3Decode
                     --channels_for_cur_subframe;
                     if (!read_channel_mask ||
                        channel_mask & (1<<channels_for_cur_subframe)) {
-                        if (chan->num_subframes > 31) {
+                        if (chan->num_subframes >= MAX_SUBFRAMES) {
                             av_log(s->avctx, AV_LOG_ERROR,
                                     "broken frame: num subframes > 31\n");
                             return -1;


More information about the FFmpeg-soc mailing list