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
3a6b6f42
Commit
3a6b6f42
authored
Jan 02, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: move force_codec_ids() up
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
98ce9b84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
utils.c
libavformat/utils.c
+15
-15
No files found.
libavformat/utils.c
View file @
3a6b6f42
...
...
@@ -659,6 +659,21 @@ fail:
/*******************************************************/
static
void
force_codec_ids
(
AVFormatContext
*
s
,
AVStream
*
st
)
{
switch
(
st
->
codec
->
codec_type
){
case
AVMEDIA_TYPE_VIDEO
:
if
(
s
->
video_codec_id
)
st
->
codec
->
codec_id
=
s
->
video_codec_id
;
break
;
case
AVMEDIA_TYPE_AUDIO
:
if
(
s
->
audio_codec_id
)
st
->
codec
->
codec_id
=
s
->
audio_codec_id
;
break
;
case
AVMEDIA_TYPE_SUBTITLE
:
if
(
s
->
subtitle_codec_id
)
st
->
codec
->
codec_id
=
s
->
subtitle_codec_id
;
break
;
}
}
static
void
probe_codec
(
AVFormatContext
*
s
,
AVStream
*
st
,
const
AVPacket
*
pkt
)
{
if
(
st
->
request_probe
>
0
){
...
...
@@ -703,21 +718,6 @@ no_packet:
}
}
static
void
force_codec_ids
(
AVFormatContext
*
s
,
AVStream
*
st
)
{
switch
(
st
->
codec
->
codec_type
){
case
AVMEDIA_TYPE_VIDEO
:
if
(
s
->
video_codec_id
)
st
->
codec
->
codec_id
=
s
->
video_codec_id
;
break
;
case
AVMEDIA_TYPE_AUDIO
:
if
(
s
->
audio_codec_id
)
st
->
codec
->
codec_id
=
s
->
audio_codec_id
;
break
;
case
AVMEDIA_TYPE_SUBTITLE
:
if
(
s
->
subtitle_codec_id
)
st
->
codec
->
codec_id
=
s
->
subtitle_codec_id
;
break
;
}
}
int
ff_read_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
{
int
ret
,
i
;
...
...
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