[FFmpeg-cvslog] flvenc: Ignore metadata that has special values and is stored already based on
Michael Niedermayer
git at videolan.org
Thu Oct 6 03:27:12 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Oct 6 03:20:57 2011 +0200| [714517b26a90eba208a0e3624193a7f4b8ea15af] | committer: Michael Niedermayer
flvenc: Ignore metadata that has special values and is stored already based on
more correct values.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=714517b26a90eba208a0e3624193a7f4b8ea15af
---
libavformat/flvenc.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
index 13a5a0f..fe866f1 100644
--- a/libavformat/flvenc.c
+++ b/libavformat/flvenc.c
@@ -281,6 +281,22 @@ static int flv_write_header(AVFormatContext *s)
}
while ((tag = av_dict_get(s->metadata, "", tag, AV_DICT_IGNORE_SUFFIX))) {
+ if( !strcmp(tag->key, "width")
+ ||!strcmp(tag->key, "height")
+ ||!strcmp(tag->key, "videodatarate")
+ ||!strcmp(tag->key, "framerate")
+ ||!strcmp(tag->key, "videocodecid")
+ ||!strcmp(tag->key, "audiodatarate")
+ ||!strcmp(tag->key, "audiosamplerate")
+ ||!strcmp(tag->key, "audiosamplesize")
+ ||!strcmp(tag->key, "stereo")
+ ||!strcmp(tag->key, "audiocodecid")
+ ||!strcmp(tag->key, "duration")
+ ||!strcmp(tag->key, "onMetaData")
+ ){
+ av_log(s, AV_LOG_DEBUG, "ignoring metadata for %s\n", tag->key);
+ continue;
+ }
put_amf_string(pb, tag->key);
avio_w8(pb, AMF_DATA_TYPE_STRING);
put_amf_string(pb, tag->value);
More information about the ffmpeg-cvslog
mailing list