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
7bf465ab
Commit
7bf465ab
authored
Nov 12, 2015
by
Hagen Schmidt
Committed by
Michael Niedermayer
Nov 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegtsenc: add vc-1 support to MPEG-TS muxer (ticket 2141)
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
1ef336e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
mpegtsenc.c
libavformat/mpegtsenc.c
+10
-0
No files found.
libavformat/mpegtsenc.c
View file @
7bf465ab
...
@@ -297,6 +297,9 @@ static int mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
...
@@ -297,6 +297,9 @@ static int mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
case
AV_CODEC_ID_DIRAC
:
case
AV_CODEC_ID_DIRAC
:
stream_type
=
STREAM_TYPE_VIDEO_DIRAC
;
stream_type
=
STREAM_TYPE_VIDEO_DIRAC
;
break
;
break
;
case
AV_CODEC_ID_VC1
:
stream_type
=
STREAM_TYPE_VIDEO_VC1
;
break
;
case
AV_CODEC_ID_MP2
:
case
AV_CODEC_ID_MP2
:
case
AV_CODEC_ID_MP3
:
case
AV_CODEC_ID_MP3
:
stream_type
=
STREAM_TYPE_AUDIO_MPEG1
;
stream_type
=
STREAM_TYPE_AUDIO_MPEG1
;
...
@@ -551,6 +554,13 @@ static int mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
...
@@ -551,6 +554,13 @@ static int mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
*
q
++
=
'r'
;
*
q
++
=
'r'
;
*
q
++
=
'a'
;
*
q
++
=
'a'
;
*
q
++
=
'c'
;
*
q
++
=
'c'
;
}
else
if
(
stream_type
==
STREAM_TYPE_VIDEO_VC1
)
{
*
q
++
=
0x05
;
/*MPEG-2 registration descriptor*/
*
q
++
=
4
;
*
q
++
=
'V'
;
*
q
++
=
'C'
;
*
q
++
=
'-'
;
*
q
++
=
'1'
;
}
}
break
;
break
;
case
AVMEDIA_TYPE_DATA
:
case
AVMEDIA_TYPE_DATA
:
...
...
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