projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a78924
)
fix missed usage of old metadata API in mov demuxer
author
Aurelien Jacobs
<aurel@gnuage.org>
Sun, 1 Mar 2009 16:06:26 +0000
(16:06 +0000)
committer
Aurelien Jacobs
<aurel@gnuage.org>
Sun, 1 Mar 2009 16:06:26 +0000
(16:06 +0000)
Originally committed as revision 17689 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/mov.c
patch
|
blob
|
history
diff --git
a/libavformat/mov.c
b/libavformat/mov.c
index
3f3444c
..
b34326c
100644
(file)
--- a/
libavformat/mov.c
+++ b/
libavformat/mov.c
@@
-1437,10
+1437,12
@@
static int mov_read_meta(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
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;
}