diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-22 14:35:00 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-22 14:35:00 +0100 |
| commit | 71b7808830e17423453502ed5112b70bf90fff1b (patch) | |
| tree | 0523f5017e391a1d93df8a5a657d1e09c7998b4e /src/lib/decoder.h | |
| parent | a747cef99d7e45d1971b9811c7cf23b4cc91a1b4 (diff) | |
Do audio/video pts sync in a hopefully much more sensible way.
Diffstat (limited to 'src/lib/decoder.h')
| -rw-r--r-- | src/lib/decoder.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/decoder.h b/src/lib/decoder.h index 7559217eb..e81fbb24e 100644 --- a/src/lib/decoder.h +++ b/src/lib/decoder.h @@ -71,11 +71,6 @@ 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 (); @@ -117,6 +112,8 @@ protected: void process_audio (uint8_t *, int); void process_subtitle (boost::shared_ptr<TimedSubtitle>); + int bytes_per_audio_sample () const; + /** our FilmState */ boost::shared_ptr<const FilmState> _fs; /** our options */ @@ -137,7 +134,6 @@ protected: private: void setup_video_filters (); void emit_audio (uint8_t* data, int size); - int bytes_per_audio_sample () const; /** last video frame to be processed */ int _video_frame; |
