[FFmpeg-devel] [PATCH] pnm: limit maxval to UINT16_MAX
andreas.cadhalpun at googlemail.com
Sat Nov 12 02:40:03 EET 2016
On 11.11.2016 01:17, Michael Niedermayer wrote:
> 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)
In that case the code has to be changed anyway, as e.g. samplecpy
doesn't handle larger maxval correctly.
More information about the ffmpeg-devel