gxf: remove gxf_ prefix to timecode metadata keys.
authorClément Bœsch <ubitux@gmail.com>
Thu, 15 Dec 2011 15:34:09 +0000 (16:34 +0100)
committerClément Bœsch <ubitux@gmail.com>
Mon, 26 Dec 2011 10:22:29 +0000 (11:22 +0100)
This will allow a shared "timecode" key metadata between formats to ease
third-party extraction.

libavformat/gxf.c

index 95a8142..e773ba7 100644 (file)
@@ -339,7 +339,7 @@ static int gxf_header(AVFormatContext *s, AVFormatParameters *ap) {
         gxf_track_tags(pb, &track_len, si);
         // check for timecode tracks
         if (track_type == 7 || track_type == 8 || track_type == 24) {
-            add_timecode_metadata(&s->metadata, "gxf_timecode",
+            add_timecode_metadata(&s->metadata, "timecode",
                                   si->track_aux_data & 0xffffffff,
                                   si->fields_per_frame);
 
@@ -390,9 +390,9 @@ static int gxf_header(AVFormatContext *s, AVFormatParameters *ap) {
             if (len >= 0x18) {
                 len -= 0x18;
                 avio_skip(pb, 0x10);
-                add_timecode_metadata(&s->metadata, "gxf_timecode_at_mark_in",
+                add_timecode_metadata(&s->metadata, "timecode_at_mark_in",
                                       avio_rl32(pb), si->fields_per_frame);
-                add_timecode_metadata(&s->metadata, "gxf_timecode_at_mark_out",
+                add_timecode_metadata(&s->metadata, "timecode_at_mark_out",
                                       avio_rl32(pb), si->fields_per_frame);
             }
         } else