[Ffmpeg-devel] Fix for overflow issue in mpegvideo.c
Tue Jul 26 01:15:19 CEST 2005
On Monday 25 July 2005 17:23, Martin Boehme wrote:
> the attached patch fixes an overflow issue I was getting for
> (overconservatively) large buffer sizes and large picture heights, i.e.
> buf_size=2.5 MB and end_y=1024. I'm aware this buf_size is _much_ too
> large (being lazy, I allocate enough buffer for a complete uncompressed
> image so I _know_ it will be enough)... OTOH, ffmpeg's (static) buffer
> size (256 KB) is already within an order of magnitude of the "critical"
> Comments, please...
btw i dont think buf_size=width*height*1.5 is enough, try random 255/0 sample
values at qp=1, btw2 if you actually try this i would be interrested in the
More information about the ffmpeg-devel