Mercurial > mplayer.hg
view libdha/README @ 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 | fc81767343ea |
children | 3f9940a98d7f |
line wrap: on
line source
libdha - Library of Direct Hardware Access. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This library was designed for direct hardware access under different OS and architectures. It's not linux specific only (like harddrake and other). This library is based on gfxdump utility from GATOS project. Full list of supported OS'es see in libdha.h Note: This library requires ROOT privileges or SUID'ed executable file (same as XServer). (Or use newly developed libdha kernel helper. Look at kernelhelper/dhahelper.c)