summaryrefslogtreecommitdiff
path: root/src/lib/decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-10-22 11:21:31 +0100
committerCarl Hetherington <cth@carlh.net>2012-10-22 11:21:31 +0100
commit4cb33e432c7070f59c3ee3fbeb0b5c8755bba3bd (patch)
treeb574347f4921b9b8edc9b1a64e6ae80c62b599cf /src/lib/decoder.h
parent1cc6986bdc5c35fd512257336f36bdb1b4142183 (diff)
Partial fix to sync according to pts.
Diffstat (limited to 'src/lib/decoder.h')
-rw-r--r--src/lib/decoder.h5
1 files changed, 5 insertions, 0 deletions
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 ();