• Steven Robertson's avatar
    avcodec/dnxhddec: Do not overwrite colorspace if the container has set it. · c6a905b9
    Steven Robertson authored
    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: 's avatarSteven Robertson <steven@strobe.cc>
    Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
    c6a905b9
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...