[FFmpeg-cvslog] r23266 - in trunk/libavformat: avformat.h mov.c movenc.c

bcoudurier subversion
Sun May 23 23:03:14 CEST 2010


Author: bcoudurier
Date: Sun May 23 23:03:14 2010
New Revision: 23266

Log:
change author metadata to artist in mov de/muxer

Modified:
   trunk/libavformat/avformat.h
   trunk/libavformat/mov.c
   trunk/libavformat/movenc.c

Modified: trunk/libavformat/avformat.h
==============================================================================
--- trunk/libavformat/avformat.h	Sun May 23 21:14:59 2010	(r23265)
+++ trunk/libavformat/avformat.h	Sun May 23 23:03:14 2010	(r23266)
@@ -23,7 +23,7 @@
 
 #define LIBAVFORMAT_VERSION_MAJOR 52
 #define LIBAVFORMAT_VERSION_MINOR 64
-#define LIBAVFORMAT_VERSION_MICRO  0
+#define LIBAVFORMAT_VERSION_MICRO  1
 
 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
                                                LIBAVFORMAT_VERSION_MINOR, \
@@ -169,6 +169,18 @@ void av_metadata_conv(struct AVFormatCon
                                                   const AVMetadataConv *s_conv);
 
 /**
+ * Converts metadata set according to the given conversion tables
+ * @param out converted destination metadata
+ * @param in metadata to be converted
+ * @param d_conv destination tags format conversion table
+ * @param s_conv source tags format conversion table
+ */
+void av_metadata_conv_generic(AVMetadata **out,
+                              AVMetadata *in,
+                              const AVMetadataConv *d_conv,
+                              const AVMetadataConv *s_conv);
+
+/**
  * Frees all the memory allocated for an AVMetadata struct.
  */
 void av_metadata_free(AVMetadata **m);

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	Sun May 23 21:14:59 2010	(r23265)
+++ trunk/libavformat/mov.c	Sun May 23 23:03:14 2010	(r23266)
@@ -144,7 +144,7 @@ static int mov_read_udta_string(MOVConte
     switch (atom.type) {
     case MKTAG(0xa9,'n','a','m'): key = "title";     break;
     case MKTAG(0xa9,'a','u','t'):
-    case MKTAG(0xa9,'A','R','T'): key = "author";    break;
+    case MKTAG(0xa9,'A','R','T'): key = "artist";    break;
     case MKTAG(0xa9,'w','r','t'): key = "composer";  break;
     case MKTAG( 'c','p','r','t'):
     case MKTAG(0xa9,'c','p','y'): key = "copyright"; break;

Modified: trunk/libavformat/movenc.c
==============================================================================
--- trunk/libavformat/movenc.c	Sun May 23 21:14:59 2010	(r23265)
+++ trunk/libavformat/movenc.c	Sun May 23 23:03:14 2010	(r23266)
@@ -1452,7 +1452,7 @@ static int mov_write_ilst_tag(ByteIOCont
     put_be32(pb, 0); /* size */
     put_tag(pb, "ilst");
     mov_write_string_metadata(s, pb, "\251nam", "title"    , 1);
-    mov_write_string_metadata(s, pb, "\251ART", "author"   , 1);
+    mov_write_string_metadata(s, pb, "\251ART", "artist"   , 1);
     mov_write_string_metadata(s, pb, "aART", "album_artist", 1);
     mov_write_string_metadata(s, pb, "\251wrt", "composer" , 1);
     mov_write_string_metadata(s, pb, "\251alb", "album"    , 1);



More information about the ffmpeg-cvslog mailing list