On Tue, May 08, 2018 at 12:47:35PM +0200, Tomas Härdin wrote: > mån 2018-05-07 klockan 12:38 +0200 skrev Michael Niedermayer: > > > Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> > > > > + if (st->codecpar->color_range != AVCOL_RANGE_UNSPECIFIED) { > > + int black = 0, > > + white = (1<<sc->component_depth) - 1, > > + color = (1<<sc->component_depth) - 1; > > + if (st->codecpar->color_range == AVCOL_RANGE_MPEG) { > > + black = 1 << (sc->component_depth - 4); > > + white = 235 << (sc->component_depth - 8); > > + color = (14 << (sc->component_depth - 4)) + 1; > > + } > > This feels like something that should be part of pix_fmt stuff or > something. But maybe someone can refactor that later. Looks OK > otherwise
ok, will apply thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB While the State exists there can be no freedom; when there is freedom there will be no State. -- Vladimir Lenin
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel