A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://ffmpeg.org/pipermail/ffmpeg-devel/2007-January/028186.html below:

[Ffmpeg-devel] Possible bug in bmp decoder

[Ffmpeg-devel] Possible bug in bmp decoder [Ffmpeg-devel] Possible bug in bmp decoderAlex Beregszaszi alex
Mon Jan 29 14:12:30 CET 2007
Hi,

> ...
>      switch(depth){
>      case 24:
>          for(i = 0; i < avctx->height; i++){
>              memcpy(ptr, buf, n);
>              buf += n;
>              ptr += linesize;
>          }
>          break;
> ...
> 
> Should it not be memcpy(ptr, buf, linesize) ?

n probably means input linesize, while linesize is the output linesize.
I guess 24bit BMP doesnt stores the padding 1 byte.

--
Alex




More information about the ffmpeg-devel mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4