fix segfaults on some HEVC/h265 files

Origin commit data
------------------
Branch: master
Commit: b6260c143e
Author: TangoCash <eric@loxat.de>
Date: 2019-08-25 (Sun, 25 Aug 2019)


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

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2019-08-25 22:17:54 +02:00
committed by vanhofen
parent ccadb3181f
commit 0ecc2fbd57
3 changed files with 6 additions and 4 deletions

View File

@@ -1,7 +1,8 @@
#ifndef pes_123
#define pes_123
#define PES_MAX_HEADER_SIZE 64
#define PES_HEADER_SIZE 9 ///< size of pes header
#define PES_MAX_HEADER_SIZE (PES_HEADER_SIZE + 256) ///< maximal header size
#define PES_PRIVATE_DATA_FLAG 0x80
#define PES_PRIVATE_DATA_LENGTH 8
#define PES_LENGTH_BYTE_0 5