22#ifndef AVFORMAT_MPEG_H
23#define AVFORMAT_MPEG_H
28#define PACK_START_CODE ((unsigned int)0x000001ba)
29#define SYSTEM_HEADER_START_CODE ((unsigned int)0x000001bb)
30#define SEQUENCE_END_CODE ((unsigned int)0x000001b7)
31#define PACKET_START_CODE_MASK ((unsigned int)0xffffff00)
32#define PACKET_START_CODE_PREFIX ((unsigned int)0x00000100)
33#define ISO_11172_END_CODE ((unsigned int)0x000001b9)
36#define PROGRAM_STREAM_MAP 0x1bc
37#define PRIVATE_STREAM_1 0x1bd
38#define PADDING_STREAM 0x1be
39#define PRIVATE_STREAM_2 0x1bf
49#define STREAM_TYPE_VIDEO_MPEG1 0x01
50#define STREAM_TYPE_VIDEO_MPEG2 0x02
51#define STREAM_TYPE_AUDIO_MPEG1 0x03
52#define STREAM_TYPE_AUDIO_MPEG2 0x04
53#define STREAM_TYPE_PRIVATE_SECTION 0x05
54#define STREAM_TYPE_PRIVATE_DATA 0x06
55#define STREAM_TYPE_AUDIO_AAC 0x0f
56#define STREAM_TYPE_VIDEO_MPEG4 0x10
57#define STREAM_TYPE_VIDEO_H264 0x1b
58#define STREAM_TYPE_VIDEO_HEVC 0x24
59#define STREAM_TYPE_VIDEO_VVC 0x33
60#define STREAM_TYPE_VIDEO_CAVS 0x42
62#define STREAM_TYPE_AUDIO_AC3 0x81
70 return (
int64_t)(*buf & 0x0e) << 29 |
static const int lpcm_freq_tab[4]
static int64_t ff_parse_pes_pts(const uint8_t *buf)
Parse MPEG-PES five-byte timestamp.