diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-01-11 21:04:25 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-01-11 21:04:25 +0000 |
commit | 64d50fa551792de85db00b8102077f833491643e (patch) | |
tree | 893eca254a375203ab9422fd725dfe14dc3f942d | |
parent | e503674c4a8fc3bcbbdb4da63fd41338f8e2163f (diff) | |
download | ffmpeg-64d50fa551792de85db00b8102077f833491643e.tar.gz |
move ffindex set before mov_read_default so it can be used in functions
Originally committed as revision 16548 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mov.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index ed027db04e..159589b871 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1337,6 +1337,7 @@ static int mov_read_trak(MOVContext *c, ByteIOContext *pb, MOVAtom atom) 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, ByteIOContext *pb, MOVAtom atom) 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) { |