diff options
author | wm4 <wm4@nowhere> | 2013-07-11 19:14:30 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-11 19:14:30 +0200 |
commit | 7a4f9cc4d2509a0d9afa68ea53ed97b72525d001 (patch) | |
tree | 0f3436db38630add1e368fc1ad94397420cb5507 /demux/ebml.c | |
parent | 995fe05254449e71f3cb93f58e03e119685bdced (diff) | |
download | mpv-7a4f9cc4d2509a0d9afa68ea53ed97b72525d001.tar.bz2 mpv-7a4f9cc4d2509a0d9afa68ea53ed97b72525d001.tar.xz |
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.
Diffstat (limited to 'demux/ebml.c')
0 files changed, 0 insertions, 0 deletions