]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mov.c
avformat/format: simplify ifdeffery
[ffmpeg] / 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;