[FFmpeg-devel] [PATCH]Fix odd RGB555 camstudio, v2

Reimar Döffinger Reimar.Doeffinger at gmx.de
Fri Apr 20 21:24:14 CEST 2012


On Fri, Apr 20, 2012 at 07:13:40PM +0000, Carl Eugen Hoyos wrote:
> Michael Niedermayer <michaelni <at> gmx.at> writes:
> 
> > iam fine with any solution
> > i just wanted to make sure this difference in handling wasnt
> > unintended
> 
> So is the patch ok?

IMHO not quite: Either we do want to avoid writing in the
area between width and stride, then you would need to change
your patch to work like the 24 bpp case, since currently
it writes more.
Hm, I think that is an actual bug, if an application would
provide a buffer with exactly linesize == 2*width then
after your change I believe the decoder would be writing
outside the buffer.


More information about the ffmpeg-devel mailing list