Commit 297ac4cb authored by aurel's avatar aurel

fix missed usage of old metadata API in mov demuxer


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17689 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent be6207f4
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment