• Steven Robertson's avatar
    libavformat/mov: Accept known codepoints in 'colr' · a3cab3d4
    Steven Robertson authored
    This change relaxes the whitelist on reading color metadata in MOV/BMFF
    containers. The whitelist on writing values is still in place.
    
    As a consequence it also fixes an apparent bug in reading 'nclc' values.
    The 'nclc' spec [1] is in harmony with ISO 23001-8 for the values it
    lists, but the code getting removed was remapping 5->6 and 6->7 for
    primaries, which is incorrect, and was remapping 6->5 for color matrix
    ("colorspace" in the code), which is equivalent but an unnecessary
    inconsistency. This logic error doesn't appear in movenc.
    
    Removing the whitelist allows proper conversion when the source codec
    relies on the container for proper signaling of newer codepoints, such
    as DNxHR and VP9. If converting to a codec or container that has updated
    its spec to include the new codepoints, the metadata will be preserved.
    If going back to MOV/BMFF, the output whitelist will still kick in, so
    this won't result in out-of-spec files being created.
    
    [1] https://developer.apple.com/library/mac/technotes/tn2162/_index.htmlSigned-off-by: 's avatarSteven Robertson <steven@strobe.cc>
    Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
    a3cab3d4
Name
Last commit
Last update
compat Loading commit data...
doc 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...
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...
arch.mak Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
cmdutils_common_opts.h Loading commit data...
cmdutils_opencl.c Loading commit data...
common.mak Loading commit data...
configure Loading commit data...
ffmpeg.c Loading commit data...
ffmpeg.h Loading commit data...
ffmpeg_cuvid.c Loading commit data...
ffmpeg_dxva2.c Loading commit data...
ffmpeg_filter.c Loading commit data...
ffmpeg_opt.c Loading commit data...
ffmpeg_qsv.c Loading commit data...
ffmpeg_vaapi.c Loading commit data...
ffmpeg_vdpau.c Loading commit data...
ffmpeg_videotoolbox.c Loading commit data...
ffplay.c Loading commit data...
ffprobe.c Loading commit data...
ffserver.c Loading commit data...
ffserver_config.c Loading commit data...
ffserver_config.h Loading commit data...
library.mak Loading commit data...
version.sh Loading commit data...