libeplayer: assume unlimited PES length for too large packets

Origin commit data
------------------
Branch: master
Commit: c964a090dd
Author: martii <m4rtii@gmx.de>
Date: 2013-02-26 (Tue, 26 Feb 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2013-02-26 19:56:08 +01:00
parent f07334224b
commit daf47b199b

View File

@@ -91,7 +91,11 @@ int InsertPesHeader (unsigned char *data, int size, unsigned char stream_id, uns
BitPacker_t ld2 = {data, 0, 32};
if (size > MAX_PES_PACKET_SIZE)
#ifdef MARTII
size = 0; // unbounded
#else
printf("%s: Packet bigger than 63.9K eeeekkkkk\n",__FUNCTION__);
#endif
PutBits(&ld2,0x0 ,8);
PutBits(&ld2,0x0 ,8);