[Ffmpeg-cvslog] r6190 - trunk/libavformat/avidec.c

gpoirier subversion
Thu Sep 7 18:35:34 CEST 2006


Author: gpoirier
Date: Thu Sep  7 18:35:22 2006
New Revision: 6190

Modified:
   trunk/libavformat/avidec.c

Log:
Allow to get the the track number in the IPRT (part) tag in AVI.
Patch by Panagiotis Issaris % takis P issaris A uhasselt P be %
Original thread:
Date: Sep 6, 2006 6:00 PM
Subject: [Ffmpeg-devel] [PATCH] Enable track tag in AVI


Modified: trunk/libavformat/avidec.c
==============================================================================
--- trunk/libavformat/avidec.c	(original)
+++ trunk/libavformat/avidec.c	Thu Sep  7 18:35:22 2006
@@ -215,6 +215,7 @@
     AVStream *st;
     AVIStream *ast = NULL;
     int xan_video = 0;  /* hack to support Xan A/V */
+    char str_track[4];
 
     avi->stream_index= -1;
 
@@ -479,6 +480,10 @@
         case MKTAG('I', 'P', 'R', 'D'):
             avi_read_tag(pb, s->album, sizeof(s->album), size);
             break;
+        case MKTAG('I', 'P', 'R', 'T'):
+            avi_read_tag(pb, str_track, sizeof(str_track), size);
+            sscanf(str_track, "%d", &s->track);
+            break;
         default:
             /* skip tag */
             size += (size & 1);




More information about the ffmpeg-cvslog mailing list