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
562b2163
Commit
562b2163
authored
Dec 12, 2007
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid using first_avcodec
Originally committed as revision 11205 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
55b9e69a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
16 deletions
+4
-16
ffserver.c
ffserver.c
+4
-16
No files found.
ffserver.c
View file @
562b2163
...
...
@@ -3628,15 +3628,9 @@ static void add_codec(FFStream *stream, AVCodecContext *av)
static
int
opt_audio_codec
(
const
char
*
arg
)
{
AVCodec
*
p
;
AVCodec
*
p
=
avcodec_find_encoder_by_name
(
arg
)
;
p
=
first_avcodec
;
while
(
p
)
{
if
(
!
strcmp
(
p
->
name
,
arg
)
&&
p
->
type
==
CODEC_TYPE_AUDIO
)
break
;
p
=
p
->
next
;
}
if
(
p
==
NULL
)
if
(
p
==
NULL
||
p
->
type
!=
CODEC_TYPE_AUDIO
)
return
CODEC_ID_NONE
;
return
p
->
id
;
...
...
@@ -3644,15 +3638,9 @@ static int opt_audio_codec(const char *arg)
static
int
opt_video_codec
(
const
char
*
arg
)
{
AVCodec
*
p
;
AVCodec
*
p
=
avcodec_find_encoder_by_name
(
arg
)
;
p
=
first_avcodec
;
while
(
p
)
{
if
(
!
strcmp
(
p
->
name
,
arg
)
&&
p
->
type
==
CODEC_TYPE_VIDEO
)
break
;
p
=
p
->
next
;
}
if
(
p
==
NULL
)
if
(
p
==
NULL
||
p
->
type
!=
CODEC_TYPE_VIDEO
)
return
CODEC_ID_NONE
;
return
p
->
id
;
...
...
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