]> git.sesse.net Git - ffmpeg/commitdiff
avformat/mov: Pass through iTunSMPB from MOV.
authorDale Curtis <dalecurtis@chromium.org>
Mon, 21 Jul 2014 19:05:08 +0000 (12:05 -0700)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 22 Jul 2014 00:11:48 +0000 (02:11 +0200)
Allows demuxing of iTunes files into adts while preserving gapless
metadata.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mov.c

index 9b4832fb3402b6d5f50bb1fe8b667d2eaa57c39c..cfe76cde4bf67d469232d75679eb7ba76d13bb3f 100644 (file)
@@ -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;