summaryrefslogtreecommitdiff
path: root/libavformat/isom.h
diff options
context:
space:
mode:
authorTinglin Liu <tinglin@google.com>2015-10-22 15:04:46 -0700
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2015-10-26 14:32:05 +0000
commit9ea812692c38c58a343cec5f66e8949655906edc (patch)
tree065ba73e35b798e93c044abad82dbfbb6dbd2555 /libavformat/isom.h
parent63ea8e0610d08531464e08f9cb7d845014ed37c8 (diff)
mov: Add support parsing QuickTime Metadata Keys.
The Apple dev specification: https://developer.apple.com/library/mac/documentation/QuickTime/QTFF/Metadata/Metadata.html Basically the structure is like: |--meta |----hdlr |----keys |----ilst 1) The handler type in the metadata handler atom is ‘mdta’. 2) The key and value are stored separately for each key-value pair. The 'keys' atom stores the key table, while 'ilst' atom stores the values corresponding to the indices in the key table. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavformat/isom.h')
-rw-r--r--libavformat/isom.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/isom.h b/libavformat/isom.h
index 6e921c04a0..dba30a25f1 100644
--- a/libavformat/isom.h
+++ b/libavformat/isom.h
@@ -177,6 +177,9 @@ typedef struct MOVContext {
int64_t duration; ///< duration of the longest track
int found_moov; ///< 'moov' atom has been found
int found_mdat; ///< 'mdat' atom has been found
+ int found_hdlr_mdta; ///< 'hdlr' atom with type 'mdta' has been found
+ char **meta_keys;
+ unsigned meta_keys_count;
DVDemuxContext *dv_demux;
AVFormatContext *dv_fctx;
int isom; ///< 1 if file is ISO Media (mp4/3gp)