From: Michel L. <wa...@zo...> - 2001-07-30 23:15:00
|
On Mon, Jul 30, 2001 at 11:49:02PM +0100, James Courtier-Dutton wrote: > Ok, I will try the following: - > If the length is zero in the packet, set it to the maximum size a PES packet > can be and set a special flag. Doesnt the standard actually say that the size is unbounded in this case ? so, you definitely can have a >64K PES packet there... You might still be able to find an upper limit, for example by using the fact that you *must* have one PTS value every 0.7s at least, and so that gives you a limit of 0.7 * max_byte_rate, but still this looks weird... > Then, if we see a PUS=1 before the end of the packet, and the special flag > is set, set the new, now known, length and put it on the fifo. > Does this sound ok? I'd say just set the length when you detect the start of the next PES packet, and let it be undefined before that. -- Michel "Walken" LESPINASSE Of course I think I'm right. If I thought I was wrong, I'd change my mind. |