Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 133520 | Differences between
and this patch

Collapse All | Expand All

(-)vorbis.c (-1 / +8 lines)
Lines 872-881 Link Here
872
    bl1=get_bits(gb, 4);
872
    bl1=get_bits(gb, 4);
873
    vc->blocksize_0=(1<<bl0);
873
    vc->blocksize_0=(1<<bl0);
874
    vc->blocksize_1=(1<<bl1);
874
    vc->blocksize_1=(1<<bl1);
875
    if (bl0>13 || bl0<6 || bl1>13 || bl1<6) {
875
    if (bl0>13 || bl0<6 || bl1>13 || bl1<6 || bl1<bl0) {
876
        av_log(vc->avccontext, AV_LOG_ERROR, " Vorbis id header packet corrupt (illegal blocksize). \n");
876
        av_log(vc->avccontext, AV_LOG_ERROR, " Vorbis id header packet corrupt (illegal blocksize). \n");
877
        return 3;
877
        return 3;
878
    }
878
    }
879
    // output format int16
880
    if (vc->blocksize_1/2 * vc->audio_channels * 2 >
881
                                             AVCODEC_MAX_AUDIO_FRAME_SIZE) {
882
        av_log(vc->avccontext, AV_LOG_ERROR, "Vorbis channel count makes "
883
               "output packets too large.\n");
884
        return 4;
885
    }
879
    vc->swin=vwin[bl0-6];
886
    vc->swin=vwin[bl0-6];
880
    vc->lwin=vwin[bl1-6];
887
    vc->lwin=vwin[bl1-6];

Return to bug 133520