Mercurial > mplayer.hg
view darwinfixlib.sh @ 7743:a280cc3087ea
All right: The patch adresses two issues which I found, when I analyzed
the input from some DVDs with known subtitle-dropouts:
1. The packet-size at the beginning of the packet, which is used to
check, whether we got all fragments, is sometimes one byte too long. It
seems to be always padded to an even number, while the actual size can
be odd.
2. The original algorythm used to assemble the fragments relies on the
timestamps to check, whether a new packet begins. This has proven to be
unrelieable on some disks. So instead, I use the timestamp only to
check, whether it's been too long (defined as 0,01sec) since the last
fragment, which is probably indicating a broken packet, and normaly
starting a new packet when the last one has been finished.
patch by Christof Buergi <christof@buergi.lugs.ch>
author | arpi |
---|---|
date | Tue, 15 Oct 2002 00:47:17 +0000 |
parents | 184f37880f90 |
children |
line wrap: on
line source
#!/bin/sh if [ `uname -s` = 'Darwin' ]; then echo "Fixing libs with ranlib for Darwin (MacOSX)" for i in $* ; do if (echo $i | grep \\.a) >/dev/null 2>&1; then echo "ranlib $i" (ranlib $i) >/dev/null 2>&1 fi done fi exit 0