Commit bc718b47 authored by Aurelien Jacobs's avatar Aurelien Jacobs

fix missed usage of old metadata API in mov demuxer

Originally committed as revision 17689 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 0a789246
......@@ -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