[FFmpeg-devel] [PATCH]Simplify camstudio decoding

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Apr 24 19:54:08 CEST 2012


On Tue, Apr 24, 2012 at 09:07:34PM +0200, Carl Eugen Hoyos wrote:
> -        switch (c->bpp) {
> -          case 16:
> -              copy_frame_16(&c->pic, c->decomp_buf, c->linelen, c->height);
> -              break;
> -          case 32:
> -              copy_frame_32(&c->pic, c->decomp_buf, c->linelen, c->height);
> -              break;
> -          default:
>                copy_frame_default(&c->pic, c->decomp_buf, FFALIGN(c->linelen, 4),
>                                   c->linelen, c->height);

I believe that will cause it to overread the input buffer for odd with
16 bpp input.


More information about the ffmpeg-devel mailing list