[FFmpeg-cvslog] r25504 - trunk/libavformat/utils.c
aurel
subversion
Sat Oct 16 15:07:20 CEST 2010
Author: aurel
Date: Sat Oct 16 15:07:20 2010
New Revision: 25504
Log:
lavf: simplify setting the encoder ident tag.
patch by Anton Khirnov anton _at_ khirnov _dot_ net
Modified:
trunk/libavformat/utils.c
Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c Sat Oct 16 15:04:27 2010 (r25503)
+++ trunk/libavformat/utils.c Sat Oct 16 15:07:20 2010 (r25504)
@@ -2755,16 +2755,7 @@ int av_write_header(AVFormatContext *s)
/* set muxer identification string */
if (!(s->streams[0]->codec->flags & CODEC_FLAG_BITEXACT)) {
- AVMetadata *m;
- AVMetadataTag *t;
-
- if (!(m = av_mallocz(sizeof(AVMetadata))))
- return AVERROR(ENOMEM);
- av_metadata_set2(&m, "encoder", LIBAVFORMAT_IDENT, 0);
- metadata_conv(&m, s->oformat->metadata_conv, NULL);
- if ((t = av_metadata_get(m, "", NULL, AV_METADATA_IGNORE_SUFFIX)))
- av_metadata_set2(&s->metadata, t->key, t->value, 0);
- av_metadata_free(&m);
+ av_metadata_set2(&s->metadata, "encoder", LIBAVFORMAT_IDENT, 0);
}
if(s->oformat->write_header){
More information about the ffmpeg-cvslog
mailing list