diff options
Diffstat (limited to 'xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxPacket.h')
| -rw-r--r-- | xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxPacket.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxPacket.h b/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxPacket.h index 4f47118..a769788 100644 --- a/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxPacket.h +++ b/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxPacket.h | |||
| @@ -21,13 +21,25 @@ | |||
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | #include <cstdint> | 23 | #include <cstdint> |
| 24 | #include <memory> | ||
| 24 | 25 | ||
| 25 | #define DMX_SPECIALID_STREAMINFO -10 | 26 | #define DMX_SPECIALID_STREAMINFO -10 |
| 26 | #define DMX_SPECIALID_STREAMCHANGE -11 | 27 | #define DMX_SPECIALID_STREAMCHANGE -11 |
| 27 | 28 | ||
| 29 | struct DemuxCryptoInfo; | ||
| 30 | |||
| 28 | typedef struct DemuxPacket | 31 | typedef struct DemuxPacket |
| 29 | { | 32 | { |
| 30 | unsigned char* pData; // data | 33 | DemuxPacket() {}; |
| 34 | |||
| 35 | DemuxPacket(unsigned char *pData, int const iSize, double const pts, double const dts) | ||
| 36 | : pData(pData) | ||
| 37 | , iSize(iSize) | ||
| 38 | , pts(pts) | ||
| 39 | , dts(dts) | ||
| 40 | {}; | ||
| 41 | |||
| 42 | unsigned char *pData; // data | ||
| 31 | int iSize; // data size | 43 | int iSize; // data size |
| 32 | int iStreamId; // integer representing the stream index | 44 | int iStreamId; // integer representing the stream index |
| 33 | int64_t demuxerId; // id of the demuxer that created the packet | 45 | int64_t demuxerId; // id of the demuxer that created the packet |
| @@ -38,4 +50,6 @@ typedef struct DemuxPacket | |||
| 38 | double duration; // duration in DVD_TIME_BASE if available | 50 | double duration; // duration in DVD_TIME_BASE if available |
| 39 | 51 | ||
| 40 | int dispTime; | 52 | int dispTime; |
| 53 | |||
| 54 | std::shared_ptr<DemuxCryptoInfo> cryptoInfo; | ||
| 41 | } DemuxPacket; | 55 | } DemuxPacket; |
