[FFmpeg-devel] [PATCH]lavc/pgssubdec: Fix palette colourspace

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Apr 17 20:50:40 CEST 2016

On Sun, Apr 17, 2016 at 06:38:12PM +0000, Carl Eugen Hoyos wrote:
> Reimar Döffinger <Reimar.Doeffinger <at> gmx.de> writes:
> > In particular, I have an uncomfortable suspicion that
> > PGS might be designed to match the movie's colour space,
> > in which case neither variant would give correct results
> > but instead it would have to depend on what format the
> > corresponding video track uses (and it probably would
> > be more than just the 255/224 factor that would differ).
> While this is certainly true, I assumed that pgs only 
> happens on HDMV content which uses some defined 
> colour space.
> Or to say it differently: Even if another colour space 
> is allowed, I assume that this sample was made 
> specifically to fix the common case.

Hm, unfortunately I think most encodings are moving towards
full-range (actually I thought that's what is normally
used for BluRay, the biggest user of PGS?), which would
mean that at least long-term the current behaviour would
cover the common case.

More information about the ffmpeg-devel mailing list