[FFmpeg-cvslog] avformat/flvenc: omit more metadata elements with specific meaning

Michael Niedermayer git at videolan.org
Mon Jan 5 16:03:37 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jan  3 23:03:55 2015 +0100| [58721388b89bc1f8ecdc304ca86462fb7202527f] | committer: Michael Niedermayer

avformat/flvenc: omit more metadata elements with specific meaning

Reviewed-by: Thilo Borgmann <thilo.borgmann at mail.de>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=58721388b89bc1f8ecdc304ca86462fb7202527f
---

 libavformat/flvenc.c |    8 ++++++++
 1 file changed, 8 insertions(+)

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



More information about the ffmpeg-cvslog mailing list