Changes by Werner Fink:
Restart error IRQ handler in case of an overflow as
described in the API manual.
Better auto detection of PES formats with AC3 and DTS frames not
starting with the payload of PES frames with PTS value.
Allow non aligned PES frames which include a substream ID for
Use silent PCM for delay the PCM/AC3/DTS data to be able to
compensate the PTS offset of Audio and Video PES frames. Mainly
done to be able to synchronize even within VDR transfer mode
where AV data are received just in time from the TV channel.
Calculate the byte rate of Mpeg Audio date to be able to
synchronize without an hard offset. This avoid jumps within
picture sequence due high PTS offsets at synching time. Also use
the sync API for Mpeg Audio at startup.
Add PTS reset after a PCM Bypass to be able to recover fast
enough and shorten the time used in the blank timer for
Be sure that the Bits in the message status register are done
well. Add two new bits which indicates play mode and stop spare
Make ReleaseBmp work even during running Bitmap upload. Be sure
that normal OSD command sequences will not destroxed by a normal
ReleaseBmp. Be sure that the ACK to the PC work even if the
Bitmap upload is premature aborted.
Add a workaround to be sure that TX_BUFF is really reset by the
PC and does not provide the old value. It seems that modifying
of IRQ_RX by the PC is not always in sync.