[FFmpeg-devel] avfilter/vf_premultiply : use full range for RGB input
Paul B Mahol
onemda at gmail.com
Sat Mar 17 23:32:53 EET 2018
On 3/17/18, Martin Vignali <martin.vignali at gmail.com> wrote:
>> Obviously for whatever reason files are tagged as limited, when in fact
>> they are full range.
>> I couldn't find source of this bug. But your patch is wrong, as it
>> color_range if it is set to limited, even if such files are useless.
> I think there is two problem here
> 1 - Frame tagged as limited instead of full
> 2 - Wrong calculation for rgb in unpremultiply offset
> Patch in attach, try to fix the second problem
> changing unpremultiply_offset, to avoid very wrong output with rgb input (8
> bits or 16 bits)
> Not sure it's the best way to fix that.
Patch looks ok.
More information about the ffmpeg-devel