From fe0c37b00715e17d84b524b0f6f57d910a82806d Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 20 Mar 2015 22:07:26 +0100 Subject: player: better handling of video with no timestamps Trying to handle such video is almost worthless, but it was requested by at least 2 users. If there are no timestamps, enable byte seeking by setting ts_resets_possible. Use the video FPS (wherever it comes from) and the audio samplerate for timing. The latter was already done by making the first packet emit DTS=0; remove this again and do it "properly" in a higher level. --- demux/stheader.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'demux/stheader.h') diff --git a/demux/stheader.h b/demux/stheader.h index fbfba01367..1af91e032b 100644 --- a/demux/stheader.h +++ b/demux/stheader.h @@ -58,6 +58,8 @@ struct sh_stream { bool default_track; // container default track flag int hls_bitrate; + bool missing_timestamps; + // stream is a picture (such as album art) struct demux_packet *attached_picture; -- cgit v1.2.3