~ubuntu-branches/ubuntu/saucy/gst-libav1.0/saucy-proposed

« back to all changes in this revision

Viewing changes to gst-libs/ext/libav/libavcodec/eac3dec.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2013-07-30 09:00:15 UTC
  • mfrom: (1.1.16) (7.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20130730090015-sc1ou2yssu7q5w4e
Tags: 1.1.3-1
* New upstream development snapshot:
  + debian/control:
    - Build depend on GStreamer and gst-plugins-base >= 1.1.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
           each band. */
141
141
        bin = s->spx_src_start_freq;
142
142
        for (bnd = 0; bnd < s->num_spx_bands; bnd++) {
143
 
            float nscale = s->spx_noise_blend[ch][bnd] * rms_energy[bnd] * (1.0f/(1<<31));
 
143
            float nscale = s->spx_noise_blend[ch][bnd] * rms_energy[bnd] * (1.0f / INT32_MIN);
144
144
            float sscale = s->spx_signal_blend[ch][bnd];
145
145
            for (i = 0; i < s->spx_band_sizes[bnd]; i++) {
146
146
                float noise  = nscale * (int32_t)av_lfg_get(&s->dith_state);
321
321
           rates in bit allocation.  The best assumption would be that it is
322
322
           handled like AC-3 DolbyNet, but we cannot be sure until we have a
323
323
           sample which utilizes this feature. */
324
 
        av_log_missing_feature(s->avctx, "Reduced sampling rates", 1);
325
 
        return -1;
 
324
        av_log_missing_feature(s->avctx, "Reduced sampling rate", 1);
 
325
        return AVERROR_PATCHWELCOME;
326
326
    }
327
327
    skip_bits(gbc, 5); // skip bitstream id
328
328
 
491
491
    s->skip_syntax       = get_bits1(gbc);
492
492
    parse_spx_atten_data = get_bits1(gbc);
493
493
 
494
 
    /* coupling strategy occurance and coupling use per block */
 
494
    /* coupling strategy occurrence and coupling use per block */
495
495
    num_cpl_blocks = 0;
496
496
    if (s->channel_mode > 1) {
497
497
        for (blk = 0; blk < s->num_blocks; blk++) {