Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
d1221f33
Commit
d1221f33
authored
Apr 01, 2018
by
Josh de Kock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/format: use const AVInputFormat for iteration
Signed-off-by:
Josh de Kock
<
josh@itanimul.li
>
parent
85bf8988
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
format.c
libavformat/format.c
+5
-5
No files found.
libavformat/format.c
View file @
d1221f33
...
...
@@ -117,11 +117,11 @@ enum AVCodecID av_guess_codec(AVOutputFormat *fmt, const char *short_name,
AVInputFormat
*
av_find_input_format
(
const
char
*
short_name
)
{
AVInputFormat
*
fmt
=
NULL
;
const
AVInputFormat
*
fmt
=
NULL
;
void
*
i
=
0
;
while
((
fmt
=
av_demuxer_iterate
(
&
i
)))
if
(
av_match_name
(
short_name
,
fmt
->
name
))
return
fmt
;
return
(
AVInputFormat
*
)
fmt
;
return
NULL
;
}
...
...
@@ -129,7 +129,8 @@ AVInputFormat *av_probe_input_format3(AVProbeData *pd, int is_opened,
int
*
score_ret
)
{
AVProbeData
lpd
=
*
pd
;
AVInputFormat
*
fmt1
=
NULL
,
*
fmt
;
const
AVInputFormat
*
fmt1
=
NULL
;
AVInputFormat
*
fmt
=
NULL
;
int
score
,
score_max
=
0
;
void
*
i
=
0
;
const
static
uint8_t
zerobuffer
[
AVPROBE_PADDING_SIZE
];
...
...
@@ -156,7 +157,6 @@ AVInputFormat *av_probe_input_format3(AVProbeData *pd, int is_opened,
nodat
=
ID3_GREATER_PROBE
;
}
fmt
=
NULL
;
while
((
fmt1
=
av_demuxer_iterate
(
&
i
)))
{
if
(
!
is_opened
==
!
(
fmt1
->
flags
&
AVFMT_NOFILE
)
&&
strcmp
(
fmt1
->
name
,
"image2"
))
continue
;
...
...
@@ -191,7 +191,7 @@ AVInputFormat *av_probe_input_format3(AVProbeData *pd, int is_opened,
}
if
(
score
>
score_max
)
{
score_max
=
score
;
fmt
=
fmt1
;
fmt
=
(
AVInputFormat
*
)
fmt1
;
}
else
if
(
score
==
score_max
)
fmt
=
NULL
;
}
...
...
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