[Ffmpeg-cvslog] r6186 - in trunk: ffplay.c libavformat/avidec.c

gpoirier subversion
Thu Sep 7 10:09:15 CEST 2006


Author: gpoirier
Date: Thu Sep  7 10:09:15 2006
New Revision: 6186

Modified:
   trunk/ffplay.c
   trunk/libavformat/avidec.c

Log:
Better tag support:
- Make ffplay show comments and copyright info besides the current track, title, author, album, year and genre.
- Makes the AVI demuxer parse the album name stores in the IPRD tag by the AVI muxer.
Patch by takis P issaris A uhasselt P be
Original thread:
[Ffmpeg-devel] [PATCH] Better tag support
Date: 09/06/06 16:58


Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	(original)
+++ trunk/ffplay.c	Thu Sep  7 10:09:15 2006
@@ -1755,6 +1755,10 @@
         fprintf(stderr, "Title: %s\n", s->title);
     if (s->author[0] != '\0')
         fprintf(stderr, "Author: %s\n", s->author);
+    if (s->copyright[0] != '\0')
+        fprintf(stderr, "Copyright: %s\n", s->copyright);
+    if (s->comment[0] != '\0')
+        fprintf(stderr, "Comment: %s\n", s->comment);
     if (s->album[0] != '\0')
         fprintf(stderr, "Album: %s\n", s->album);
     if (s->year != 0)

Modified: trunk/libavformat/avidec.c
==============================================================================
--- trunk/libavformat/avidec.c	(original)
+++ trunk/libavformat/avidec.c	Thu Sep  7 10:09:15 2006
@@ -476,6 +476,9 @@
         case MKTAG('I', 'G', 'N', 'R'):
             avi_read_tag(pb, s->genre, sizeof(s->genre), size);
             break;
+        case MKTAG('I', 'P', 'R', 'D'):
+            avi_read_tag(pb, s->album, sizeof(s->album), size);
+            break;
         default:
             /* skip tag */
             size += (size & 1);




More information about the ffmpeg-cvslog mailing list