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
cf10ee18
Commit
cf10ee18
authored
Feb 09, 2007
by
Nico Sabbi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux VC1 in mpegts
Originally committed as revision 7902 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
8d74e55b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
mpegts.c
libavformat/mpegts.c
+6
-1
mpegts.h
libavformat/mpegts.h
+1
-0
No files found.
libavformat/mpegts.c
View file @
cf10ee18
...
...
@@ -503,6 +503,7 @@ static void pmt_cb(void *opaque, const uint8_t *section, int section_len)
case
STREAM_TYPE_VIDEO_MPEG2
:
case
STREAM_TYPE_VIDEO_MPEG4
:
case
STREAM_TYPE_VIDEO_H264
:
case
STREAM_TYPE_VIDEO_VC1
:
case
STREAM_TYPE_AUDIO_AAC
:
case
STREAM_TYPE_AUDIO_AC3
:
case
STREAM_TYPE_AUDIO_DTS
:
...
...
@@ -813,7 +814,7 @@ static void mpegts_push_data(void *opaque,
code
=
pes
->
header
[
3
]
|
0x100
;
if
(
!
((
code
>=
0x1c0
&&
code
<=
0x1df
)
||
(
code
>=
0x1e0
&&
code
<=
0x1ef
)
||
(
code
==
0x1bd
)))
(
code
==
0x1bd
)
||
(
code
==
0x1fd
)
))
goto
skip
;
if
(
!
pes
->
st
)
{
/* allocate stream */
...
...
@@ -921,6 +922,10 @@ static AVStream* new_pes_av_stream(PESContext *pes, uint32_t code)
codec_type
=
CODEC_TYPE_VIDEO
;
codec_id
=
CODEC_ID_H264
;
break
;
case
STREAM_TYPE_VIDEO_VC1
:
codec_type
=
CODEC_TYPE_VIDEO
;
codec_id
=
CODEC_ID_VC1
;
break
;
case
STREAM_TYPE_AUDIO_AAC
:
codec_type
=
CODEC_TYPE_AUDIO
;
codec_id
=
CODEC_ID_AAC
;
...
...
libavformat/mpegts.h
View file @
cf10ee18
...
...
@@ -46,6 +46,7 @@
#define STREAM_TYPE_AUDIO_AAC 0x0f
#define STREAM_TYPE_VIDEO_MPEG4 0x10
#define STREAM_TYPE_VIDEO_H264 0x1b
#define STREAM_TYPE_VIDEO_VC1 0xea
#define STREAM_TYPE_AUDIO_AC3 0x81
#define STREAM_TYPE_AUDIO_DTS 0x8a
...
...
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