]> git.sesse.net Git - ffmpeg/commit
vp9_metadata: Improve spec-compliance and warnings
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 9 Jul 2019 01:10:45 +0000 (03:10 +0200)
committerMark Thompson <sw@jkqxz.net>
Sun, 28 Jul 2019 18:02:34 +0000 (19:02 +0100)
commitabb2e9ac3cb90c9268e20864f0a44baad12cd883
tree3f817d585123a60caf519bbe6f9aff261a53b964
parent43a188847cce63326c932b5226bb925f75df300e
vp9_metadata: Improve spec-compliance and warnings

The earlier version had three deficits:
1. It allowed to set the stream to RGB although this is not allowed when
the profile is 0 or 2.
2. If it set the stream to RGB, then it did not automatically set the
range to full range; the result was that one got a warning every time a
frame with color_config element was processed if the frame originally
had TV range and the user didn't explicitly choose PC range. Now one
gets only one warning in such a situation.
3. Intra-only frames in profile 0 are automatically BT.601, but if the
user wished another color space, he was not informed about his wishes
being unfulfillable.

The commit also improves the documentation about this.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
doc/bitstream_filters.texi
libavcodec/vp9_metadata_bsf.c