summaryrefslogtreecommitdiff
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorDale Curtis <dalecurtis@chromium.org>2014-07-21 12:05:08 -0700
committerMichael Niedermayer <michaelni@gmx.at>2014-07-22 02:11:48 +0200
commit70f7006eb311f49f627f6d3f4f8c43260cc33aa0 (patch)
tree531b805f5574d80a46129fde86e18003aeabed79 /libavformat/mov.c
parent42f3bc40726593b309362853e1ef233b8efa50d5 (diff)
avformat/mov: Pass through iTunSMPB from MOV.
Allows demuxing of iTunes files into adts while preserving gapless metadata. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 9b4832fb34..cfe76cde4b 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2534,8 +2534,8 @@ static int mov_read_custom_2plus(MOVContext *c, AVIOContext *pb, int size)
if(priming>0 && priming<16384)
sc->start_pad = priming;
}
- } else if (strcmp(key, "cdec") == 0) {
- } else {
+ }
+ if (strcmp(key, "cdec") != 0) {
av_dict_set(&c->fc->metadata, key, val,
AV_DICT_DONT_STRDUP_KEY | AV_DICT_DONT_STRDUP_VAL);
key = val = NULL;