[FFmpeg-cvslog] r17689 - trunk/libavformat/mov.c

aurel subversion
Sun Mar 1 17:06:27 CET 2009


Author: aurel
Date: Sun Mar  1 17:06:26 2009
New Revision: 17689

Log:
fix missed usage of old metadata API in mov demuxer

Modified:
   trunk/libavformat/mov.c

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	Sun Mar  1 16:58:57 2009	(r17688)
+++ trunk/libavformat/mov.c	Sun Mar  1 17:06:26 2009	(r17689)
@@ -1437,10 +1437,12 @@ static int mov_read_meta(MOVContext *c, 
 
 static int mov_read_trkn(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
 {
+    char track[16];
     get_be32(pb); // type
     get_be32(pb); // unknown
-    c->fc->track = get_be32(pb);
-    dprintf(c->fc, "%.4s %d\n", (char*)&atom.type, c->fc->track);
+    snprintf(track, sizeof(track), "%d", get_be32(pb));
+    av_metadata_set(&c->fc->metadata, "track", track);
+    dprintf(c->fc, "%.4s %s\n", (char*)&atom.type, track);
     return 0;
 }
 




More information about the ffmpeg-cvslog mailing list