~ubuntu-branches/ubuntu/raring/libav/raring-security

« back to all changes in this revision

Viewing changes to libavcodec/aacdec.c

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2011-09-28 09:18:34 UTC
  • mfrom: (1.3.7 sid)
  • Revision ID: package-import@ubuntu.com-20110928091834-w415mnuh06h4zpvc
Tags: 4:0.7.1-7ubuntu2
Revert "Convert package to include multiarch support."

Show diffs side-by-side

added added

removed removed

Lines of Context:
1753
1753
    } else {
1754
1754
        memset(in, 0, 448 * sizeof(float));
1755
1755
        ac->dsp.vector_fmul(in + 448, in + 448, swindow_prev, 128);
1756
 
        memcpy(in + 576, in + 576, 448 * sizeof(float));
1757
1756
    }
1758
1757
    if (ics->window_sequence[0] != LONG_START_SEQUENCE) {
1759
1758
        ac->dsp.vector_fmul_reverse(in + 1024, in + 1024, lwindow, 1024);
1760
1759
    } else {
1761
 
        memcpy(in + 1024, in + 1024, 448 * sizeof(float));
1762
1760
        ac->dsp.vector_fmul_reverse(in + 1024 + 448, in + 1024 + 448, swindow, 128);
1763
1761
        memset(in + 1024 + 576, 0, 448 * sizeof(float));
1764
1762
    }
2076
2074
    ChannelElement *che = NULL, *che_prev = NULL;
2077
2075
    enum RawDataBlockType elem_type, elem_type_prev = TYPE_END;
2078
2076
    int err, elem_id, data_size_tmp;
2079
 
    int samples = 0, multiplier;
 
2077
    int samples = 0, multiplier, audio_found = 0;
2080
2078
 
2081
2079
    if (show_bits(gb, 12) == 0xfff) {
2082
2080
        if (parse_adts_frame_header(ac, gb) < 0) {
2107
2105
 
2108
2106
        case TYPE_SCE:
2109
2107
            err = decode_ics(ac, &che->ch[0], gb, 0, 0);
 
2108
            audio_found = 1;
2110
2109
            break;
2111
2110
 
2112
2111
        case TYPE_CPE:
2113
2112
            err = decode_cpe(ac, gb, che);
 
2113
            audio_found = 1;
2114
2114
            break;
2115
2115
 
2116
2116
        case TYPE_CCE:
2119
2119
 
2120
2120
        case TYPE_LFE:
2121
2121
            err = decode_ics(ac, &che->ch[0], gb, 0, 0);
 
2122
            audio_found = 1;
2122
2123
            break;
2123
2124
 
2124
2125
        case TYPE_DSE:
2195
2196
                                                   samples, avctx->channels);
2196
2197
    }
2197
2198
 
2198
 
    if (ac->output_configured)
 
2199
    if (ac->output_configured && audio_found)
2199
2200
        ac->output_configured = OC_LOCKED;
2200
2201
 
2201
2202
    return 0;