Revision f08d171c libavcodec/wmadec.c

View differences:

libavcodec/wmadec.c
103 103
    s->use_variable_block_len = flags2 & 0x0004;
104 104

  
105 105
    if(avctx->codec->id == CODEC_ID_WMAV2 && avctx->extradata_size >= 8){
106
        if(!AV_RL16(extradata+6) && s->use_variable_block_len){
106
        if(AV_RL16(extradata+4)==0xd && s->use_variable_block_len){
107 107
            av_log(avctx, AV_LOG_WARNING, "Disabling use_variable_block_len, if this fails contact the ffmpeg developers and send us the file\n");
108 108
            s->use_variable_block_len= 0; // this fixes issue1503
109 109
        }

Also available in: Unified diff