Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
2fef7b53
Commit
2fef7b53
authored
May 31, 2009
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove defines
Originally committed as revision 19004 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
8430f3ec
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
13 deletions
+6
-13
mpegts.c
libavformat/mpegts.c
+6
-7
mpegts.h
libavformat/mpegts.h
+0
-6
No files found.
libavformat/mpegts.c
View file @
2fef7b53
...
@@ -35,7 +35,6 @@
...
@@ -35,7 +35,6 @@
/* maximum size in which we look for synchronisation if
/* maximum size in which we look for synchronisation if
synchronisation is lost */
synchronisation is lost */
#define MAX_RESYNC_SIZE 4096
#define MAX_RESYNC_SIZE 4096
#define REGISTRATION_DESCRIPTOR 5
#define MAX_PES_PAYLOAD 200*1024
#define MAX_PES_PAYLOAD 200*1024
...
@@ -534,7 +533,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
...
@@ -534,7 +533,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
//something else is broken, exit the program_descriptors_loop
//something else is broken, exit the program_descriptors_loop
break
;
break
;
program_info_length
-=
len
+
2
;
program_info_length
-=
len
+
2
;
if
(
tag
==
REGISTRATION_DESCRIPTOR
&&
len
>=
4
)
{
if
(
tag
==
0x05
&&
len
>=
4
)
{
// registration descriptor
prog_reg_desc
=
bytestream_get_le32
(
&
p
);
prog_reg_desc
=
bytestream_get_le32
(
&
p
);
len
-=
4
;
len
-=
4
;
}
}
...
@@ -583,9 +582,9 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
...
@@ -583,9 +582,9 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
desc_tag
,
desc_len
);
desc_tag
,
desc_len
);
switch
(
desc_tag
)
{
switch
(
desc_tag
)
{
case
DVB_SUBT_DESCID
:
case
0x59
:
/* subtitling descriptor */
if
(
stream_type
==
STREAM_TYPE_PRIVATE_DATA
)
if
(
stream_type
==
STREAM_TYPE_PRIVATE_DATA
)
stream_type
=
STREAM_TYPE_SUBTITLE_DVB
;
// demuxer internal
stream_type
=
0x100
;
// demuxer internal
language
[
0
]
=
get8
(
&
p
,
desc_end
);
language
[
0
]
=
get8
(
&
p
,
desc_end
);
language
[
1
]
=
get8
(
&
p
,
desc_end
);
language
[
1
]
=
get8
(
&
p
,
desc_end
);
...
@@ -602,7 +601,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
...
@@ -602,7 +601,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
language
[
2
]
=
get8
(
&
p
,
desc_end
);
language
[
2
]
=
get8
(
&
p
,
desc_end
);
language
[
3
]
=
0
;
language
[
3
]
=
0
;
break
;
break
;
case
REGISTRATION_DESCRIPTOR
:
/*MPEG-2 R
egistration descriptor */
case
0x05
:
/* r
egistration descriptor */
reg_desc
=
bytestream_get_le32
(
&
p
);
reg_desc
=
bytestream_get_le32
(
&
p
);
break
;
break
;
default:
default:
...
@@ -634,7 +633,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
...
@@ -634,7 +633,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
if
(
language
[
0
]
!=
0
)
if
(
language
[
0
]
!=
0
)
av_metadata_set
(
&
st
->
metadata
,
"language"
,
language
);
av_metadata_set
(
&
st
->
metadata
,
"language"
,
language
);
if
(
stream_type
==
STREAM_TYPE_SUBTITLE_DVB
)
if
(
stream_type
==
0x100
)
st
->
codec
->
sub_id
=
(
anc_page
<<
16
)
|
comp_page
;
st
->
codec
->
sub_id
=
(
anc_page
<<
16
)
|
comp_page
;
}
}
}
}
...
@@ -956,7 +955,7 @@ static const StreamType HDMV_types[] = {
...
@@ -956,7 +955,7 @@ static const StreamType HDMV_types[] = {
static
const
StreamType
MISC_types
[]
=
{
static
const
StreamType
MISC_types
[]
=
{
{
0x81
,
CODEC_TYPE_AUDIO
,
CODEC_ID_AC3
},
{
0x81
,
CODEC_TYPE_AUDIO
,
CODEC_ID_AC3
},
{
0x8a
,
CODEC_TYPE_AUDIO
,
CODEC_ID_DTS
},
{
0x8a
,
CODEC_TYPE_AUDIO
,
CODEC_ID_DTS
},
{
STREAM_TYPE_SUBTITLE_DVB
,
CODEC_TYPE_SUBTITLE
,
CODEC_ID_DVB_SUBTITLE
},
// demuxer internal
{
0x100
,
CODEC_TYPE_SUBTITLE
,
CODEC_ID_DVB_SUBTITLE
},
// demuxer internal
{
0
},
{
0
},
};
};
...
...
libavformat/mpegts.h
View file @
2fef7b53
...
@@ -39,9 +39,6 @@
...
@@ -39,9 +39,6 @@
#define PMT_TID 0x02
#define PMT_TID 0x02
#define SDT_TID 0x42
#define SDT_TID 0x42
/* descriptor ids */
#define DVB_SUBT_DESCID 0x59
#define STREAM_TYPE_VIDEO_MPEG1 0x01
#define STREAM_TYPE_VIDEO_MPEG1 0x01
#define STREAM_TYPE_VIDEO_MPEG2 0x02
#define STREAM_TYPE_VIDEO_MPEG2 0x02
#define STREAM_TYPE_AUDIO_MPEG1 0x03
#define STREAM_TYPE_AUDIO_MPEG1 0x03
...
@@ -56,9 +53,6 @@
...
@@ -56,9 +53,6 @@
#define STREAM_TYPE_AUDIO_AC3 0x81
#define STREAM_TYPE_AUDIO_AC3 0x81
#define STREAM_TYPE_AUDIO_DTS 0x8a
#define STREAM_TYPE_AUDIO_DTS 0x8a
#define STREAM_TYPE_AUDIO_HDMV_DTS 0x82
#define STREAM_TYPE_SUBTITLE_DVB 0x100
typedef
struct
MpegTSContext
MpegTSContext
;
typedef
struct
MpegTSContext
MpegTSContext
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment