Commit cf434fa2 authored by bcoudurier's avatar bcoudurier

move ffindex set before mov_read_default so it can be used in functions

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16548 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 496fc83d
...@@ -1337,6 +1337,7 @@ static int mov_read_trak(MOVContext *c, ByteIOContext *pb, MOVAtom atom) ...@@ -1337,6 +1337,7 @@ static int mov_read_trak(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
st->priv_data = sc; st->priv_data = sc;
st->codec->codec_type = CODEC_TYPE_DATA; st->codec->codec_type = CODEC_TYPE_DATA;
st->start_time = 0; /* XXX: check */ st->start_time = 0; /* XXX: check */
sc->ffindex = st->index;
if ((ret = mov_read_default(c, pb, atom)) < 0) if ((ret = mov_read_default(c, pb, atom)) < 0)
return ret; return ret;
...@@ -1363,7 +1364,7 @@ static int mov_read_trak(MOVContext *c, ByteIOContext *pb, MOVAtom atom) ...@@ -1363,7 +1364,7 @@ static int mov_read_trak(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
assert(st->duration % sc->time_rate == 0); assert(st->duration % sc->time_rate == 0);
st->duration /= sc->time_rate; st->duration /= sc->time_rate;
} }
sc->ffindex = st->index;
mov_build_index(c, st); mov_build_index(c, st);
if (sc->dref_id-1 < sc->drefs_count && sc->drefs[sc->dref_id-1].path) { if (sc->dref_id-1 < sc->drefs_count && sc->drefs[sc->dref_id-1].path) {
......
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