Before lenny, I was using this method, as described on google group
It would be nice to fix this bug
Edit ffmpeg_frame.c from line 396 to 411
delete
int x, y;
int *src = (int*)frame->data[0];
for (y = 0; y < height; y++) {
for (x = 0; x < width; x++) {
if (gdImageBoundsSafeMacro(dest, x, y)) {
/* copy pixel to gdimage buffer zeroing the alpha channel */
dest->tpixels[y][x] = src[x] & 0x00ffffff;
} else {
return -1;
}
}
src += width;
}
return 0;
and replace by
int x, y;
int *src = (int*)frame->data[0];
if (width > dest->sx || height > dest->sy)
{
return -1;
}
for (y = 0; y < height; y++) {
for (x = 0; x < width; x++) {
dest->tpixels[y][x] = src[x] & 0x00ffffff;
}
src += width;
}
return 0;
--
Romain Viovi
[email protected]
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]