diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-01-26 05:18:01 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-26 20:10:25 +0100 |
commit | 8847561f93c8e44095324a2c16ba78adf1a7511a (patch) | |
tree | b02e1ede9bd9204c184ac0f1604546396b04778b | |
parent | 22eef8d738bfd56c2149b3de46bdc729eaa3d05f (diff) | |
download | ffmpeg-8847561f93c8e44095324a2c16ba78adf1a7511a.tar.gz |
mov: Fix seeking regression in fragemnted movs.
Regression introduced in 550f7c43ece1af27604407647d10e74b52e6fedf
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/mov.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index a8c78b27c5..b584c0da42 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2254,6 +2254,9 @@ static int mov_read_trex(MOVContext *c, AVIOContext *pb, MOVAtom atom) trex = av_realloc(c->trex_data, (c->trex_count+1)*sizeof(*c->trex_data)); if (!trex) return AVERROR(ENOMEM); + + c->fc->duration = AV_NOPTS_VALUE; // the duration from mvhd is not representing the whole file when fragments are used. + c->trex_data = trex; trex = &c->trex_data[c->trex_count++]; avio_r8(pb); /* version */ |