box: Initialize predefined children by non-existing box constants whenever
commit294d62ca7c96209ad251e67fc4363107e26e77cf
authorYusuke Nakamura <muken.the.vfrmaniac@gmail.com>
Fri, 24 Feb 2017 18:17:46 +0000 (25 03:17 +0900)
committerYusuke Nakamura <muken.the.vfrmaniac@gmail.com>
Thu, 2 Mar 2017 17:02:37 +0000 (3 02:02 +0900)
treec8873560f1a9a7c10d8f3bd17a112b5aea237de1
parentc5a2acfd52bdbb686b272c92936dbd079c41a2e8
box: Initialize predefined children by non-existing box constants whenever
allocating container boxes.

Check box existence with the new methods in order to prevent you from
missing null deferencing checks. Now, you can do so somewhat safer coding
than the previous. Be careful not to overwrite constants which are read
only. It's a new issue because of this change, but I think it's still
safer on the whole.
33 files changed:
L-SMASH.vcxproj
L-SMASH.vcxproj.filters
codecs/a52.c
codecs/alac.c
codecs/description.c
codecs/dts.c
codecs/h264.c
codecs/hevc.c
codecs/mp4a.c
codecs/mp4sys.c
codecs/mp4v.c
codecs/nalu.c
codecs/qt_wfex.c
codecs/vc1.c
codecs/wma.c
common/utils.h
configure
core/box.c
core/box.h
core/box_default.c [new file with mode: 0644]
core/box_default.h [new file with mode: 0644]
core/chapter.c
core/file.c
core/fragment.c
core/isom.c
core/meta.c
core/print.c
core/read.c
core/summary.c
core/timeline.c
core/write.c
importer/importer.c
lsmash.h