[Live-devel] PES packet size

jiri.pinkava at vscht.cz jiri.pinkava at vscht.cz
Fri Jun 23 16:32:40 PDT 2006


There look like a small bug in MPEG2TransportStreamFromPESSource.cpp
where is specified buffer for PES packet of lenght 65536 (correct is 65535+6).
(but who use packets of this lenght???)

diff -ru live/liveMedia/MPEG2TransportStreamFromPESSource.cpp live-2006.05.17/liveMedia/MPEG2TransportStreamFromPESSource.cpp
--- live/liveMedia/MPEG2TransportStreamFromPESSource.cpp	2005-12-29 14:22:35.000000000 +0100
+++ live-2006.05.17/liveMedia/MPEG2TransportStreamFromPESSource.cpp	2006-05-18 00:06:50.000000000 +0200
@@ -20,7 +20,7 @@
 
 #include "MPEG2TransportStreamFromPESSource.hh"
 
-#define MAX_PES_PACKET_SIZE 65536
+#define MAX_PES_PACKET_SIZE (65535 + 6)
 
 MPEG2TransportStreamFromPESSource* MPEG2TransportStreamFromPESSource
 ::createNew(UsageEnvironment& env, MPEG1or2DemuxedElementaryStream* inputSource) {


More information about the live-devel mailing list