[FFmpeg-devel] [PATCH] avcodec/tiff: add limited support for ReferenceBlackWhite and YCbCrCoefficients tags

James Almer jamrial at gmail.com
Fri Oct 4 23:59:36 EEST 2019


On 10/4/2019 3:24 AM, Skakov Pavel wrote:
>> You should use AVRationals instead. It's ideal seeing the way these
>> values are coded in the bitstream.
>>
>> See libavutil/rational.h
> 
> 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.

> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-devel mailing list