]> git.sesse.net Git - ffmpeg/commit
avformat/dv: fix timestamps of audio packets in case of dropped corrupt audio frames
authorMarton Balint <cus@passwd.hu>
Sat, 31 Oct 2020 16:51:34 +0000 (17:51 +0100)
committerMarton Balint <cus@passwd.hu>
Sun, 6 Dec 2020 17:09:24 +0000 (18:09 +0100)
commit76fbb0052df471075858c1cb82b04c8be7adba8d
treecec3039da55ebb38f65a8ef15165ed2849664e05
parent7a170bd6c14b17c7972d11deb9fbd6cfa2131256
avformat/dv: fix timestamps of audio packets in case of dropped corrupt audio frames

By using the frame counter (and the video time base) for audio pts we lose some
timestamp precision but we ensure that video and audio coming from the same DV
frame are always in sync.

This patch also makes timestamps after seek consistent and it should also fix
the timestamps when the audio clock is unlocked and have a completely
indpendent clock source. (E.g. runs on fixed 48009 Hz which should have been
exact 48000 Hz)

Fixes out of sync timestamps in ticket #8762.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavformat/dv.c
tests/ref/seek/lavf-dv