[FFmpeg-cvslog] r23466 - trunk/libavformat/metadata.c
mstorsjo
subversion
Fri Jun 4 09:32:09 CEST 2010
Author: mstorsjo
Date: Fri Jun 4 09:32:09 2010
New Revision: 23466
Log:
metadata: make conversion to the same format a noop.
Patch by Anton Khirnov, wyskas at gmail
Modified:
trunk/libavformat/metadata.c
Modified: trunk/libavformat/metadata.c
==============================================================================
--- trunk/libavformat/metadata.c Fri Jun 4 08:42:39 2010 (r23465)
+++ trunk/libavformat/metadata.c Fri Jun 4 09:32:09 2010 (r23466)
@@ -117,9 +117,11 @@ void metadata_conv(AVMetadata **pm, cons
AVMetadata *dst = NULL;
const char *key;
+ if (d_conv == s_conv)
+ return;
+
while((mtag=av_metadata_get(*pm, "", mtag, AV_METADATA_IGNORE_SUFFIX))) {
key = mtag->key;
- if (s_conv != d_conv) {
if (s_conv)
for (sc=s_conv; sc->native; sc++)
if (!strcasecmp(key, sc->native)) {
@@ -132,7 +134,6 @@ void metadata_conv(AVMetadata **pm, cons
key = dc->native;
break;
}
- }
av_metadata_set2(&dst, key, mtag->value, 0);
}
av_metadata_free(pm);
More information about the ffmpeg-cvslog
mailing list