mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 20:03:10 +02:00
7a4f9cc4d2
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. |
||
---|---|---|
.. | ||
ad_internal.h | ||
ad_lavc.c | ||
ad_mpg123.c | ||
ad_spdif.c | ||
ad.c | ||
ad.h | ||
dec_audio.c | ||
dec_audio.h |