ad_pcm: Track pts explicitly
commit2ba9df3df3d61a7cc1bde9f897bc77eaaf14b383
authorUoti Urpala <uau@symbol.nonexistent.invalid>
Sun, 3 Aug 2008 18:14:11 +0000 (3 21:14 +0300)
committerUoti Urpala <uau@symbol.nonexistent.invalid>
Sun, 3 Aug 2008 18:25:48 +0000 (3 21:25 +0300)
treeba2664cf554237fde25eac4718fb17ed63c37b08
parent6cce822505c0a76ac520909a895021b8f5b7e5ab
ad_pcm: Track pts explicitly

ad_pcm used the old audio timestamp tracking system that calculated
timestamp at end of decoder output as
last_timestamp_in_input_decoder_has_read +
bytes_read_after_that_timestamp / input_bitrate.
For PCM this can be accurate as input bitrate is constant. However it
relies on input bitrate being known and actually set. At least in some
case with .mov input and libavformat demuxer it wasn't set. Instead of
special-casing PCM to make sure input bitrate is set (in general it
may not be known or constant at all) change ad_pcm to explicitly set
the pts information on the decoder output side.
libmpcodecs/ad_pcm.c