[FFmpeg-devel] [PATCH 2/2] swscale: separate exported and internal range flags

Jan Ekström jeebjp at gmail.com
Wed Oct 7 02:19:39 EEST 2020


On Wed, Oct 7, 2020 at 2:03 AM Jan Ekström <jeebjp at gmail.com> wrote:
>
> Fixes vf_scale outputting RGB AVFrames with limited range in
> case either input or output specifically sets the range.
>
> Keeps the external interfaces the same, but allows us to retrieve
> and set nonzero value for RGB. Additionally defines the default
> value of the AVOption as -1 so we can differentiate between
> attempting to force limited range and requesting the default.
> ---

For context, this fixes the issue mentioned in the patch set sent
earlier where actually plugging color space values into encoders from
the received decoded/filtered AVFrames led to the finding that
vf_scale was actually pushing out RGB AVFrames with narrow range,
missed so far due to no-one plugging the pipes together.

Ref. https://patchwork.ffmpeg.org/project/ffmpeg/patch/20200913102622.168011-5-jeebjp@gmail.com/#58426

Jan


More information about the ffmpeg-devel mailing list