[FFmpeg-devel] [PATCH] IFF PBM: Add a pad byte if image width is odd
Aleksi Nurmi
aleksi.nurmi
Tue Jun 22 00:06:29 CEST 2010
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.
There's a sample at http://cs.helsinki.fi/u/ahnurmi/iff-pbm-with-odd-width.bbm
Aleksi Nurmi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iff-pbm-padding-if-width-is-odd.diff
Type: text/x-patch
Size: 499 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100622/4ee5385c/attachment.bin>
More information about the ffmpeg-devel
mailing list