Mercurial > mplayer.hg
view DOCS/tech/mirrors/update_mplayer_rsync @ 24589:9118be6575da
demux_audio.c: Fix timestamp handling
The code calculated the pts values of audio packets by adding the length
of the current packet to the pts of the previous one. The length of the
previous packet should be added instead. This broke WAV timestamps near
the end of the stream where a short packet occurs.
Change the code to store the pts of the next packet instead of the last
one. This fixes the WAV timestamps and allows some simplifications.
MP3 timestamps are not affected as packets are always treated as
constant decoded length, and FLAC timestamps still have worse problems
(FLAC is treated as as if it was constant bitrate even though it isn't).
Also store the timestamps as double instead of float.
author | uau |
---|---|
date | Mon, 24 Sep 2007 21:49:56 +0000 |
parents | daccad6cb91d |
children | 32725ca88fed |
line wrap: on
line source
#!/usr/bin/env bash # MPlayer mirroring script # $Id$ PATH=<set_path_if_necessary> LOCK=<path_to_lockfile> MIRROR_ROOT=<path_to_mirror_root> MAILADR=<report_mail_to_adr> #TMPDIR = /tmp #export TMPDIR TMPFILE=`mktemp -t mplayer.XXXXXXXXXXX` # Check to see if another sync is in progress if lockfile -! -l 43200 -r 0 "$LOCK"; then echo Unable to start mirroring MPlayer, lock file exists. exit 1 fi trap "rm -f $LOCK > /dev/null 2>&1" exit cd $MIRROR_ROOT echo "************ rsyncing homepage ************" >> $TMPFILE rsync -pxlrHtWv --delete --delete-after rsync.mplayerhq.hu::homepage/ \ homepage >> $TMPFILE 2>&1 echo "************ rsyncing MPlayer ************" >> $TMPFILE rsync -pxlrHtWv --delete --delete-after --exclude '/benchmark' \ --exclude '/old_stuff' --exclude '/tests' rsync.mplayerhq.hu::ftp/ \ MPlayer >> $TMPFILE 2>&1 x=`wc -l $TMPFILE | awk '{print $1}'` if [ "$x" -ne "10" ] then mailx -s "MPlayer mirror" $MAILADR < $TMPFILE fi rm -f $TMPFILE