[FFmpeg-devel] [PATCH] pnm: limit maxval to UINT16_MAX

Michael Niedermayer michael at niedermayer.cc
Fri Nov 11 02:17:45 EET 2016


On Thu, Nov 10, 2016 at 08:54:37PM +0100, Andreas Cadhalpun wrote:
> From 'man ppm': The maximum color value (Maxval), again in ASCII decimal.
>                 Must be less than 65536.
> 
> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
> ---
>  libavcodec/pnm.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

should be ok (unless someone extended this format to larger values)

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

You can kill me, but you cannot change the truth.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20161111/6c71d107/attachment.sig>


More information about the ffmpeg-devel mailing list