[FFmpeg-devel] [PATCH 2/2] avcodec/tiff: Multi-page support

Nick Renieris velocityra at gmail.com
Fri Mar 29 11:14:15 EET 2019


Στις Παρ, 29 Μαρ 2019 στις 11:05 π.μ., ο/η Paul B Mahol
<onemda at gmail.com> έγραψε:
> You should also check max number of available pages.
> And issue warning if user requested more than available and than provide some
> page.

Yeah, I _would_ have done that, but the images I've seen don't
actually contain the max number of pages in PageNumber[1].
Instead, they seem to contain PageNumber[0] + 1.
Here's an example from the file I sent (generated with IrfanView):
https://i.imgur.com/CEWADrD.png
The PageNumber tag from the last IFD couldn't fit in the screenshot,
it's PageNumber[0] = 2 and PageNumber[1] = 3.


More information about the ffmpeg-devel mailing list