avformat/flvenc: omit more metadata elements with specific meaning
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 3 Jan 2015 22:03:55 +0000 (23:03 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 5 Jan 2015 00:45:49 +0000 (01:45 +0100)
Reviewed-by: Thilo Borgmann <thilo.borgmann@mail.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/flvenc.c

index 5468c4d..5e27ed0 100644 (file)
@@ -288,6 +288,14 @@ static void write_metadata(AVFormatContext *s, unsigned int ts)
             ||!strcmp(tag->key, "audiocodecid")
             ||!strcmp(tag->key, "duration")
             ||!strcmp(tag->key, "onMetaData")
+            ||!strcmp(tag->key, "datasize")
+            ||!strcmp(tag->key, "lasttimestamp")
+            ||!strcmp(tag->key, "totalframes")
+            ||!strcmp(tag->key, "hasAudio")
+            ||!strcmp(tag->key, "hasVideo")
+            ||!strcmp(tag->key, "hasCuePoints")
+            ||!strcmp(tag->key, "hasMetadata")
+            ||!strcmp(tag->key, "hasKeyframes")
         ){
             av_log(s, AV_LOG_DEBUG, "Ignoring metadata for %s\n", tag->key);
             continue;