• Timo Teräs's avatar
    avformat/movenc: use correct iTunes copyright atom · 62c1cfcc
    Timo Teräs authored
    Support for writing copyright metadata was added in commit bed4fc54
    for 3GP, MOV and iTunes metadata. 3GP and MOV cases are formally
    specified. However, iTunes format does not have specification, and
    it seems to have been assumed that it would use the same atom as
    MOV (both being Apple formats).
    
    However, Apple uses 'cprt' atom for iTunes metadata (do note that
    the iTunes 'cprt' encoding is generic iTunes ItemList atom, not
    the 3GP 'cprt' encoding. These are also inside different parent
    atoms).
    
    Most references trying to document iTunes atoms mention only
    the 'cprt' tag. See:
     - http://atomicparsley.sourceforge.net/mpeg-4files.html
     - http://mutagen.readthedocs.io/en/latest/api/mp4.html
    
    Same applies to other software supporting this tag. Most of them
    encode and decode only the 'cprt' atom.
    
    ffmpeg mov demuxer supports both atoms in this context. There are
    few pieces of other software that support similarly both 'cprt' and
    the incorrect '\251cpy' atom in this context. I believe they do it in
    order to read the ffmpeg encoded incorrect copyright atom.
    
    In light of the above this changes the copyright atom to 'cprt' as
    it seems to be supported univerally and is the correct atom to use.
    Signed-off-by: 's avatarTimo Teräs <timo.teras@iki.fi>
    Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
    62c1cfcc
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...