0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00
mpv/audio/decode
wm4 7a4f9cc4d2 ad_spdif: better PTS sync
pts_bytes can't just be changed at the end. It must be offset to the pts
value, which is reset with each packet read from the demuxer. Make sure
the pts_byte field is always reset after receiving a new PTS, i.e.
increment it after actually writing to the output buffer.

Flush the AVFormatContext's write buffer, because otherwise the audio
PTS will jump around too much: the calculation doesn't use the exact
output buffer size if there's still data in the avio buffer.
2013-07-11 19:14:30 +02:00
..
ad_internal.h audio/decode: remove vararg from ad_control() 2013-04-12 20:35:59 +02:00
ad_lavc.c demux: remove facility for partial packet reads 2013-07-11 19:10:33 +02:00
ad_mpg123.c demux: remove facility for partial packet reads 2013-07-11 19:10:33 +02:00
ad_spdif.c ad_spdif: better PTS sync 2013-07-11 19:14:30 +02:00
ad.c core: redo how codecs are mapped, remove codecs.conf 2013-02-10 17:25:56 +01:00
ad.h demux: remove facility for partial packet reads 2013-07-11 19:10:33 +02:00
dec_audio.c demux: remove facility for partial packet reads 2013-07-11 19:10:33 +02:00
dec_audio.h core: make options.c compile standalone 2013-06-08 17:08:20 +02:00