Re: [DVBCUT-user] [PATCH] Fix audio framing in streamdata.cpp

2007-05-28 Thread Wolfram Gloger
Hi, Hmm... `bytes' is the distance between two items, and should be an integer multiple of the frame size. But items also include the (sometime) non-aligned PES packet headers; these are not deleted in audio_addpts. For those, the distance is arbitrary, see the log output below. By

[DVBCUT-user] [PATCH] Fix audio framing in streamdata.cpp

2007-05-27 Thread Wolfram Gloger
Hi, I still get false hits from streamdata.cpp:mpaframe() for audio streams where MPEG audio frames aren't aligned to packet boundaries. The reason is that mpaframe() simply looks for a possible MPA header, and then looks for another MPA header at an offset of the framesize _or anywhere later_.

Re: [DVBCUT-user] [PATCH] Fix audio framing in streamdata.cpp

2007-05-27 Thread Michael Riepe
Hi! Wolfram Gloger wrote: I still get false hits from streamdata.cpp:mpaframe() for audio streams where MPEG audio frames aren't aligned to packet boundaries. The reason is that mpaframe() simply looks for a possible MPA header, and then looks for another MPA header at an offset of the

Re: [DVBCUT-user] [PATCH] Fix audio framing in streamdata.cpp

2007-05-27 Thread Wolfram Gloger
Delivery-Date: Sun, 27 May 2007 17:00:50 +0200 Received-SPF: pass (mxeu11: domain of lists.sourceforge.net designates 66.35.250.225 as permitted sender) client-ip=66.35.250.225; [EMAIL PROTECTED]; helo=lists-outbound.sourceforge.net; Hi, Yep. That's why there is the sync code. After a

Re: [DVBCUT-user] [PATCH] Fix audio framing in streamdata.cpp

2007-05-27 Thread Michael Riepe
Hi again! Wolfram Gloger wrote: Delivery-Date: Sun, 27 May 2007 17:00:50 +0200 Received-SPF: pass (mxeu11: domain of lists.sourceforge.net designates 66.35.250.225 as permitted sender) client-ip=66.35.250.225; [EMAIL PROTECTED]; helo=lists-outbound.sourceforge.net; Hi, Yep. That's why