[FFmpeg-cvslog] r16548 - trunk/libavformat/mov.c
bcoudurier
subversion
Sun Jan 11 22:04:25 CET 2009
Author: bcoudurier
Date: Sun Jan 11 22:04:25 2009
New Revision: 16548
Log:
move ffindex set before mov_read_default so it can be used in functions
Modified:
trunk/libavformat/mov.c
Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c Sun Jan 11 22:03:42 2009 (r16547)
+++ trunk/libavformat/mov.c Sun Jan 11 22:04:25 2009 (r16548)
@@ -1337,6 +1337,7 @@ static int mov_read_trak(MOVContext *c,
st->priv_data = sc;
st->codec->codec_type = CODEC_TYPE_DATA;
st->start_time = 0; /* XXX: check */
+ sc->ffindex = st->index;
if ((ret = mov_read_default(c, pb, atom)) < 0)
return ret;
@@ -1363,7 +1364,7 @@ static int mov_read_trak(MOVContext *c,
assert(st->duration % sc->time_rate == 0);
st->duration /= sc->time_rate;
}
- sc->ffindex = st->index;
+
mov_build_index(c, st);
if (sc->dref_id-1 < sc->drefs_count && sc->drefs[sc->dref_id-1].path) {
More information about the ffmpeg-cvslog
mailing list