[FFmpeg-devel] [PATCH] IFF PBM: Add a pad byte if image width is odd

Peter Ross pross
Tue Jun 22 14:48:36 CEST 2010


On Tue, Jun 22, 2010 at 01:06:29AM +0300, Aleksi Nurmi wrote:
> It seems that IFF PBM uses padding for each line of pixel data. The
> current decoder does not do that, yet for example Multishow does. The
> fix is simply
> 
> -            buf += avctx->width;
> +            buf += avctx->width + (avctx->width % 2); // padding if odd
> 
> but I attached it as a patch, too. It does not affect the regression tests.

Applied.

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100622/c1bab586/attachment.pgp>



More information about the ffmpeg-devel mailing list