[mythtv] CLE266 Optimization
Jamison Wilde
jamison_wilde at yahoo.com
Fri Oct 3 23:48:54 EDT 2003
In
void VideoOutputVIA::DrawSlice(VideoFrame *frame, int
x, int y, int w, int h)
...
memset(data->tempbuffer, 0, curdata->slice_datalen
+ 32);
memcpy(data->tempbuffer, curdata->slice_data,
curdata->slice_datalen);
...
Should be changed to:
memset(data->tempbuffer + curdata->slice_datalen,
0, 32);
memcpy(data->tempbuffer, curdata->slice_data,
curdata->slice_datalen);
As the memset is unnecessary on the area of the buffer
about to receive a copy.
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
More information about the mythtv-dev
mailing list