Στις Παρ, 29 Μαρ 2019 στις 11:05 π.μ., ο/η Paul B Mahol <one...@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. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".