[FFmpeg-devel] [PATCH] avcodec/tiff: add limited support for ReferenceBlackWhite and YCbCrCoefficients tags
Skakov Pavel
pavelsx at gmail.com
Sat Oct 5 00:40:17 EEST 2019
>> Can AVRational be used even through the values are essentially unsigned?
>> LibTIFF really likes to encode 0..1 values with denominator 0xFFFFFFFF.
>
> Is it feasible for this to use av_reduce() with INT_MAX as max argument?
> It takes int64_t as input values, so UINT_MAX should be fine.
It seems to be able to handle the case, but that code looks like an overkill for what was required to be done.
See PATCH v2 – I rewrote it with plain integer multiplications.
More information about the ffmpeg-devel
mailing list