[FFmpeg-devel] [PATCH 1/2] swscale/swscale_internal: interpret RGB paletted pixel formats as RGB

Jan Ekström jeebjp at gmail.com
Wed Oct 7 20:45:07 EEST 2020


On Wed, Oct 7, 2020 at 8:34 PM Michael Niedermayer
<michael at niedermayer.cc> wrote:
>
> On Wed, Oct 07, 2020 at 02:03:16AM +0300, Jan Ekström wrote:
> > This makes isAnyRGB return true for AV_PIX_FMT_PAL8 which is currently
> > the only pixel format with this flag.
> >
> > This lets us have a single query for formats where we need to force
> > range as only full range content is supported.
> > ---
> >  libswscale/swscale_internal.h    | 2 +-
> >  tests/ref/fate/sws-pixdesc-query | 1 +
> >  2 files changed, 2 insertions(+), 1 deletion(-)
>
> This breaks:
>
> ./ffmpeg -i ~/tickets/3464/DEMO.HNM -vframes 5 out.avi
> The output looks like the chroma plane is significantly shifted horizontally
>
> file should be here:
> https://trac.ffmpeg.org/raw-attachment/ticket/3464/DEMO.HNM
>
> thx

OK, thank you.

I will move back to !isYUV() && !isGray() instead of isAnyRGB() then
because while latter is IMHO easier to read, this was not noticed in
FATE and swscale is not what I am trying to work on more than
absolutely necessary right now.

Jan


More information about the ffmpeg-devel mailing list