On Fri, Jun 26, 2015 at 5:16 PM, Rostislav Pehlivanov <atomnu...@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. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel