[FFmpeg-cvslog] r11883 - trunk/libavcodec/vorbis.c
Balatoni Denes
dbalatoni
Sun Feb 10 03:04:11 CET 2008
Hi!
Saturday 09 February 2008 14:53-kor lorenm ezt ?rta:
> Log:
> 30% faster ff_vorbis_floor1_render_list, 3% faster overall
Great!
> if (flag[pos]) {
> - render_line(lx, ly, list[pos].x, y_list[pos] * multiplier,
> out, samples); - lx = list[pos].x;
> - ly = y_list[pos] * multiplier;
> + int x1 = list[pos].x;
> + int y1 = y_list[pos] * multiplier;
> + if (lx < samples)
> + render_line(lx, ly, FFMIN(x1,samples), y1, out);
However this change seems to be functionally different when x1>samples - the
steepness of the line in render_line will be different, no? I haven't
checked in the spec whether "x1" can be greater than "samples", though
(probably it can be, as there has always been a check for this kind of
clipping in render_line and it's predecessors).
> + lx = x1;
> + ly = y1;
> }
> if (lx >= samples) break;
> }
> - if (lx < samples) render_line(lx, ly, samples, ly, out, samples);
> + if (lx < samples) render_line(lx, ly, samples, ly, out);
> }
bye
Denes
More information about the ffmpeg-cvslog
mailing list