[FFmpeg-devel] [PATCH 1/2] avformat/flvenc: omit more metadata elements which specific meaning

Michael Niedermayer michaelni at gmx.at
Sat Jan 3 23:35:25 CET 2015


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavformat/flvenc.c |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
index 5468c4d..eb4c088 100644
--- a/libavformat/flvenc.c
+++ b/libavformat/flvenc.c
@@ -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, "hasKeframes")
         ){
             av_log(s, AV_LOG_DEBUG, "Ignoring metadata for %s\n", tag->key);
             continue;
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list