ref: c20f6b4e3dc8046a76ca8bc5c09e34cc1579ec7b
parent: cbee4c0f7751da0bb8743a3112c38592abc78248
author: Ralph Giles <giles@mozilla.com>
date: Wed Apr 11 09:15:20 EDT 2012
Use 'artist' not 'author' for the dc:author tag. This code came from speexenc, which has always used 'author' for authorship metadata. This is the name used by the Dublic Core tag set, but Vorbis and FLAC have been using 'artist' instead for over a decade. 'Artist' isn't ideal outside of the original domain of popular music, but sticking with it is less surprising than making a different choice now.
--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -59,6 +59,7 @@
#endif
#define OLD_LIBOGG 1
+#undef OLD_LIBOGG
#ifdef VALGRIND
#include <valgrind/memcheck.h>
@@ -138,7 +139,7 @@
printf("\nMetadata options:\n");
printf(" --comment Add the given string as an extra comment\n");
printf(" This may be used multiple times\n");
- printf(" --author Author of this track\n");
+ printf(" --artist Author of this track\n");
printf(" --title Title for this track\n");
printf("\nInput options:\n");
printf(" --raw Raw input\n");
@@ -194,7 +195,7 @@
{"version", no_argument, NULL, 0},
{"version-short", no_argument, NULL, 0},
{"comment", required_argument, NULL, 0},
- {"author", required_argument, NULL, 0},
+ {"artist", required_argument, NULL, 0},
{"title", required_argument, NULL, 0},
{0, 0, 0, 0}
};
@@ -414,8 +415,8 @@
exit(1);
}
comment_add(&comments, &comments_length, NULL, optarg);
- }else if(strcmp(long_options[option_index].name,"author")==0){
- comment_add(&comments, &comments_length, "author=", optarg);
+ }else if(strcmp(long_options[option_index].name,"artist")==0){
+ comment_add(&comments, &comments_length, "artist=", optarg);
} else if(strcmp(long_options[option_index].name,"title")==0){
comment_add(&comments, &comments_length, "title=", optarg);
}