From 4cb33e432c7070f59c3ee3fbeb0b5c8755bba3bd Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 22 Oct 2012 11:21:31 +0100 Subject: Partial fix to sync according to pts. --- src/lib/decoder.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib/decoder.h') diff --git a/src/lib/decoder.h b/src/lib/decoder.h index 2285cf4f9..7559217eb 100644 --- a/src/lib/decoder.h +++ b/src/lib/decoder.h @@ -71,6 +71,11 @@ public: virtual int64_t audio_channel_layout () const = 0; virtual bool has_subtitles () const = 0; + /** @return amount of extra unwanted audio at the start (or -ve for unwanted video) in milliseconds */ + virtual int audio_to_discard () const { + return 0; + } + void process_begin (); bool pass (); void process_end (); -- cgit v1.2.3