Partial fix to sync according to pts.
[dcpomatic.git] / src / lib / decoder.h
index 2285cf4f9694ecd4edc4c6e9ec6b2a8b209898d2..7559217eb13f914a2acd4f68a5b1407c6893705e 100644 (file)
@@ -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 ();