[MPlayer-dev-eng] [PATCH] syncing dvdread - part1

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sun Aug 19 14:21:03 CEST 2007


Hello,
On Sun, Aug 19, 2007 at 02:02:42PM +0200, Nico Sabbi wrote:
> Nico Sabbi wrote:
>>> Will it not be easier if we do the sync first?
>>>
>>> Diego
>> yes, of course
>
> updated (although I like much more mp_getbits in libmpdemux/mpeg_hdr.c) :-)

Do you really need to be able to read up to 32 bits or would 25 be
enough?
If yes it should be possible to simplify this a lot, similar to how the
libavcodec ALT_BITSTREAM_READER does it just with less obfuscation (i.e.
read 32 bits with AV_RB32, shift left according to current bit position
within the byte and shift right again depending on number of bits to
read.

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list