[FFmpeg-devel] [PATCH 10/11] aaccoder: implement intensity	stereo
    Claudio Freire 
    klaussfreire at gmail.com
       
    Tue Jun 30 03:35:37 CEST 2015
    
    
  
On Fri, Jun 26, 2015 at 5:16 PM, Rostislav Pehlivanov
<atomnuker at gmail.com> wrote:
> +                if (dist2 <= dist1) {
> +                    cpe->is_mask[w*16+g] = 1;
> +                    cpe->ch[0].is_ener[w*16+g] = ener1/ener01;
> +                    cpe->ch[1].is_ener[w*16+g] = ener0/ener1;
> +                    if (s_coef0*s_coef1 >= 0.0f)
> +                        cpe->ch[1].band_type[w*16+g] = INTENSITY_BT;
> +                    else
> +                        cpe->ch[1].band_type[w*16+g] = INTENSITY_BT2;
> +                    count++;
> +                }
If you don't add an:
cpe->ms_mask[w*16+g] = 0;
In there, you get horrible artifacts. Tested it quite a bit already.
    
    
More information about the ffmpeg-devel
mailing list