diff options
author | Anssi Hannula <anssi.hannula@iki.fi> | 2013-12-30 11:53:56 +0200 |
---|---|---|
committer | Anssi Hannula <anssi.hannula@iki.fi> | 2014-04-06 17:55:03 +0300 |
commit | 6b4b73e75da926aa09dab06789643fb491dfe0ca (patch) | |
tree | 924fe3fc5feb5d81993d6ab18bad123f267a889f /libavformat/pcmdec.c | |
parent | 8fd6875c83d511dc20390052ccd4d1d567ece152 (diff) | |
download | ffmpeg-6b4b73e75da926aa09dab06789643fb491dfe0ca.tar.gz |
avformat/hls: do not use sequence numbers for packet ordering
As per spec 3.4.3 ("A client MUST NOT assume that segments with the same
sequence number in different Media Playlists contain matching content.")
we cannot use sequence numbers for packet ordering.
This can be seen e.g. in the subtitle streams of
bipbop_16x9_variant.m3u8 that have considerably longer segments and
therefore different numbering.
Since the code now exclusively syncs using timestamps that may wrap, add
some additional checking for that.
According to the HLS spec all the timestamps should be in 33-bit MPEG
format and synced together.
v2: cleaner wrap detection
v3: further wrap detection improvements
Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
Diffstat (limited to 'libavformat/pcmdec.c')
0 files changed, 0 insertions, 0 deletions