aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/sipr.h
diff options
context:
space:
mode:
authorSteven Robertson <steven@strobe.cc>2017-11-28 16:49:46 -0800
committerMichael Niedermayer <michael@niedermayer.cc>2017-11-30 02:46:22 +0100
commitc6a905b91d935f78f5c33f6ce2dbe294b3353b77 (patch)
tree37ccc43a63916aef9ac17b682ea045907abda1cc /libavcodec/sipr.h
parentd268094f889479a8edee43d8c847da8838b8bf0f (diff)
downloadffmpeg-c6a905b91d935f78f5c33f6ce2dbe294b3353b77.tar.gz
avcodec/dnxhddec: Do not overwrite colorspace if the container has set it.
The existing logic overrides container metadata even in cases where the container metadata must be trusted (e.g. HDR). The original spec had no provision for specifying color volume, so many files rely on the assumption of Rec. 709. An update to the spec included a 'clv' field for explicitly signaling that the container should be trusted in an existing bitfield in the frame header, but the default of 0 from old encoders forces Rec. 709, which would break any HDR stream. Because there is no place in DNxHR for specifying a transfer function, DNxHR HDR files must include container-level color information. This patch maintains the existing behavior of choosing the 709 over the 601 matrix when container-level information is missing, and allows container-level information to win if present. Signed-off-by: Steven Robertson <steven@strobe.cc> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/sipr.h')
0 files changed, 0 insertions, 0 deletions