[FFmpeg-devel] [PATCH]Assume GRAY8 if 1 < maxval < 255 in pnm

Michael Niedermayer michaelni at gmx.at
Sun Jul 28 18:10:16 CEST 2013


On Sun, Jul 28, 2013 at 05:48:02PM +0200, Carl Eugen Hoyos wrote:
> HI!
> 
> Attached patch is untested (I don't know how to produce a sample) but 
> I think pnm with maxval < 256 should never be interpreted as gray16.
> 
> Please comment, Carl Eugen

>  pnm.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 3376e41548a27533940780ce39a4dda5efe2cdb2  patchpnm254.diff
> diff --git a/libavcodec/pnm.c b/libavcodec/pnm.c
> index 308457b..6e2e96c 100644

should be ok

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In fact, the RIAA has been known to suggest that students drop out
of college or go to community college in order to be able to afford
settlements. -- The RIAA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130728/d2df4680/attachment.asc>


More information about the ffmpeg-devel mailing list