From 814869759c59ed3ce16604837fbf55e4f5ff7392 Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Wed, 2 May 2018 19:29:11 -0700 Subject: demux, player: fix playback of sparse video streams (w/ still images) Fixes several issues playing back mpegts with video streams marked as having "still images". For example, see this video which has frames only every 6s: https://s3.amazonaws.com/tmm1/music-choice.ts Changes include: - start playback right away, without waiting for first video frame - do not consider the sparse video stream in demuxer underrun detection - do not require multiple video frames for the VO - use audio as the master stream for demuxer metadata events - use audio stream for playback time Signed-off-by: Aman Gupta --- demux/stheader.h | 1 + 1 file changed, 1 insertion(+) (limited to 'demux/stheader.h') diff --git a/demux/stheader.h b/demux/stheader.h index 700ded89fa..63744487bf 100644 --- a/demux/stheader.h +++ b/demux/stheader.h @@ -46,6 +46,7 @@ struct sh_stream { bool default_track; // container default track flag bool forced_track; // container forced track flag bool dependent_track; // container dependent track flag + bool still_image; // video stream contains still images int hls_bitrate; struct mp_tags *tags; -- cgit v1.2.3