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
64ab5fa3
Commit
64ab5fa3
authored
May 31, 2009
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
export all streams in ts demuxer
Originally committed as revision 19001 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
86cb7e33
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
23 deletions
+1
-23
mpegts.c
libavformat/mpegts.c
+1
-23
No files found.
libavformat/mpegts.c
View file @
64ab5fa3
...
@@ -622,23 +622,6 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
...
@@ -622,23 +622,6 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
stream_type
,
pid
);
stream_type
,
pid
);
/* now create ffmpeg stream */
/* now create ffmpeg stream */
switch
(
stream_type
)
{
case
STREAM_TYPE_AUDIO_MPEG1
:
case
STREAM_TYPE_AUDIO_MPEG2
:
case
STREAM_TYPE_VIDEO_MPEG1
:
case
STREAM_TYPE_VIDEO_MPEG2
:
case
STREAM_TYPE_VIDEO_MPEG4
:
case
STREAM_TYPE_VIDEO_H264
:
case
STREAM_TYPE_VIDEO_VC1
:
case
STREAM_TYPE_VIDEO_DIRAC
:
case
STREAM_TYPE_AUDIO_AAC
:
case
STREAM_TYPE_AUDIO_AC3
:
case
STREAM_TYPE_AUDIO_DTS
:
case
STREAM_TYPE_AUDIO_HDMV_DTS
:
case
STREAM_TYPE_SUBTITLE_DVB
:
if
((
stream_type
==
STREAM_TYPE_AUDIO_HDMV_DTS
&&
!
has_hdmv_descr
)
||
(
stream_type
==
STREAM_TYPE_VIDEO_DIRAC
&&
!
has_dirac_descr
))
break
;
if
(
ts
->
pids
[
pid
]
&&
ts
->
pids
[
pid
]
->
type
==
MPEGTS_PES
){
if
(
ts
->
pids
[
pid
]
&&
ts
->
pids
[
pid
]
->
type
==
MPEGTS_PES
){
pes
=
ts
->
pids
[
pid
]
->
u
.
pes_filter
.
opaque
;
pes
=
ts
->
pids
[
pid
]
->
u
.
pes_filter
.
opaque
;
st
=
pes
->
st
;
st
=
pes
->
st
;
...
@@ -651,11 +634,6 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
...
@@ -651,11 +634,6 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
add_pid_to_pmt
(
ts
,
h
->
id
,
pid
);
add_pid_to_pmt
(
ts
,
h
->
id
,
pid
);
if
(
st
)
if
(
st
)
av_program_add_stream_index
(
ts
->
stream
,
h
->
id
,
st
->
index
);
av_program_add_stream_index
(
ts
->
stream
,
h
->
id
,
st
->
index
);
break
;
default:
/* we ignore the other streams */
break
;
}
if
(
st
)
{
if
(
st
)
{
if
(
language
[
0
]
!=
0
)
{
if
(
language
[
0
]
!=
0
)
{
...
@@ -1014,7 +992,7 @@ static AVStream* new_pes_av_stream(PESContext *pes, uint32_t code)
...
@@ -1014,7 +992,7 @@ static AVStream* new_pes_av_stream(PESContext *pes, uint32_t code)
codec_type
=
CODEC_TYPE_AUDIO
;
codec_type
=
CODEC_TYPE_AUDIO
;
codec_id
=
CODEC_ID_AC3
;
codec_id
=
CODEC_ID_AC3
;
}
else
{
}
else
{
codec_type
=
CODEC_TYPE_
VIDEO
;
codec_type
=
CODEC_TYPE_
DATA
;
codec_id
=
CODEC_ID_PROBE
;
codec_id
=
CODEC_ID_PROBE
;
}
}
break
;
break
;
...
...
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