Originally committed as revision 19004 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -35,7 +35,6 @@ |
| 35 | 35 |
/* maximum size in which we look for synchronisation if |
| 36 | 36 |
synchronisation is lost */ |
| 37 | 37 |
#define MAX_RESYNC_SIZE 4096 |
| 38 |
-#define REGISTRATION_DESCRIPTOR 5 |
|
| 39 | 38 |
|
| 40 | 39 |
#define MAX_PES_PAYLOAD 200*1024 |
| 41 | 40 |
|
| ... | ... |
@@ -534,7 +533,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len |
| 534 | 534 |
//something else is broken, exit the program_descriptors_loop |
| 535 | 535 |
break; |
| 536 | 536 |
program_info_length -= len + 2; |
| 537 |
- if(tag == REGISTRATION_DESCRIPTOR && len >= 4) {
|
|
| 537 |
+ if(tag == 0x05 && len >= 4) { // registration descriptor
|
|
| 538 | 538 |
prog_reg_desc = bytestream_get_le32(&p); |
| 539 | 539 |
len -= 4; |
| 540 | 540 |
} |
| ... | ... |
@@ -583,9 +582,9 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len |
| 583 | 583 |
desc_tag, desc_len); |
| 584 | 584 |
|
| 585 | 585 |
switch(desc_tag) {
|
| 586 |
- case DVB_SUBT_DESCID: |
|
| 586 |
+ case 0x59: /* subtitling descriptor */ |
|
| 587 | 587 |
if (stream_type == STREAM_TYPE_PRIVATE_DATA) |
| 588 |
- stream_type = STREAM_TYPE_SUBTITLE_DVB; // demuxer internal |
|
| 588 |
+ stream_type = 0x100; // demuxer internal |
|
| 589 | 589 |
|
| 590 | 590 |
language[0] = get8(&p, desc_end); |
| 591 | 591 |
language[1] = get8(&p, desc_end); |
| ... | ... |
@@ -602,7 +601,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len |
| 602 | 602 |
language[2] = get8(&p, desc_end); |
| 603 | 603 |
language[3] = 0; |
| 604 | 604 |
break; |
| 605 |
- case REGISTRATION_DESCRIPTOR: /*MPEG-2 Registration descriptor */ |
|
| 605 |
+ case 0x05: /* registration descriptor */ |
|
| 606 | 606 |
reg_desc = bytestream_get_le32(&p); |
| 607 | 607 |
break; |
| 608 | 608 |
default: |
| ... | ... |
@@ -634,7 +633,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len |
| 634 | 634 |
if (language[0] != 0) |
| 635 | 635 |
av_metadata_set(&st->metadata, "language", language); |
| 636 | 636 |
|
| 637 |
- if (stream_type == STREAM_TYPE_SUBTITLE_DVB) |
|
| 637 |
+ if (stream_type == 0x100) |
|
| 638 | 638 |
st->codec->sub_id = (anc_page << 16) | comp_page; |
| 639 | 639 |
} |
| 640 | 640 |
} |
| ... | ... |
@@ -956,7 +955,7 @@ static const StreamType HDMV_types[] = {
|
| 956 | 956 |
static const StreamType MISC_types[] = {
|
| 957 | 957 |
{ 0x81, CODEC_TYPE_AUDIO, CODEC_ID_AC3 },
|
| 958 | 958 |
{ 0x8a, CODEC_TYPE_AUDIO, CODEC_ID_DTS },
|
| 959 |
- { STREAM_TYPE_SUBTITLE_DVB, CODEC_TYPE_SUBTITLE, CODEC_ID_DVB_SUBTITLE }, // demuxer internal
|
|
| 959 |
+ {0x100, CODEC_TYPE_SUBTITLE, CODEC_ID_DVB_SUBTITLE }, // demuxer internal
|
|
| 960 | 960 |
{ 0 },
|
| 961 | 961 |
}; |
| 962 | 962 |
|
| ... | ... |
@@ -39,9 +39,6 @@ |
| 39 | 39 |
#define PMT_TID 0x02 |
| 40 | 40 |
#define SDT_TID 0x42 |
| 41 | 41 |
|
| 42 |
-/* descriptor ids */ |
|
| 43 |
-#define DVB_SUBT_DESCID 0x59 |
|
| 44 |
- |
|
| 45 | 42 |
#define STREAM_TYPE_VIDEO_MPEG1 0x01 |
| 46 | 43 |
#define STREAM_TYPE_VIDEO_MPEG2 0x02 |
| 47 | 44 |
#define STREAM_TYPE_AUDIO_MPEG1 0x03 |
| ... | ... |
@@ -56,9 +53,6 @@ |
| 56 | 56 |
|
| 57 | 57 |
#define STREAM_TYPE_AUDIO_AC3 0x81 |
| 58 | 58 |
#define STREAM_TYPE_AUDIO_DTS 0x8a |
| 59 |
-#define STREAM_TYPE_AUDIO_HDMV_DTS 0x82 |
|
| 60 |
- |
|
| 61 |
-#define STREAM_TYPE_SUBTITLE_DVB 0x100 |
|
| 62 | 59 |
|
| 63 | 60 |
typedef struct MpegTSContext MpegTSContext; |
| 64 | 61 |
|