HLS provides MPEG TS timestamps via ID3 tags in the beginning of each segment of elementary audio streams.
v2: fix issues with streams that have multiple ID3 tags
01b184e avformat/hls: parse ID3 timestamps for elementary audio streams
libavformat/hls.c | 316 +++++++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 305 insertions(+), 11 deletions(-)