ffmpeg/libavformat
Daniel Glöckner feb1dbc7bd avformat/mov: prevent duplication of first fragment's ctts_data
MP4 files with fragments might have the first moof box that is mentioned
in a fragment index before the first mdat box. Since it is then already
parsed by mov_read_header, we have to make sure that mov_switch_root
will not parse it again when seeking by setting the headers_read flag in
the index. Parsing it a second time would cause the ctts_data array to
receive a second copy of the information from the trun box, leading to
wrong PTS values for the second and following fragments in presence of
B-frames.

Fixes ticket 6560.

Signed-off-by: Daniel Glöckner <daniel-gl@gmx.net>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-09-01 00:56:32 +02:00
..
2017-08-30 12:13:02 +02:00
2017-03-31 18:19:41 +02:00
2017-03-29 14:49:29 +02:00
2017-02-01 02:57:40 +01:00
2017-01-19 02:40:43 +01:00
2017-08-29 01:33:47 +02:00
2017-08-30 12:13:01 +02:00
2017-08-30 12:13:02 +02:00
2017-02-11 20:20:07 +01:00
2017-07-14 13:48:56 +01:00
2017-08-30 12:13:02 +02:00
2017-07-10 12:03:08 +02:00
2017-08-30 12:13:02 +02:00
2017-03-30 13:26:04 +02:00
2017-06-13 19:49:06 +02:00
2017-03-02 11:39:54 +01:00
2017-07-07 15:30:57 -04:00
2017-07-10 15:02:29 -04:00
2017-01-30 11:00:58 +01:00
2017-08-30 12:13:01 +02:00
2017-05-10 15:21:17 +02:00
2017-07-16 16:09:17 +01:00