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
6a3520bf
Commit
6a3520bf
authored
Mar 20, 2019
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: Constify AVProbeData* in av_probe_input_format().
parent
cc493410
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
avformat.h
libavformat/avformat.h
+3
-3
format.c
libavformat/format.c
+3
-3
No files found.
libavformat/avformat.h
View file @
6a3520bf
...
...
@@ -2240,7 +2240,7 @@ ff_const59 AVInputFormat *av_find_input_format(const char *short_name);
* @param is_opened Whether the file is already opened; determines whether
* demuxers with or without AVFMT_NOFILE are probed.
*/
ff_const59
AVInputFormat
*
av_probe_input_format
(
AVProbeData
*
pd
,
int
is_opened
);
ff_const59
AVInputFormat
*
av_probe_input_format
(
ff_const59
AVProbeData
*
pd
,
int
is_opened
);
/**
* Guess the file format.
...
...
@@ -2254,7 +2254,7 @@ ff_const59 AVInputFormat *av_probe_input_format(AVProbeData *pd, int is_opened);
* If the score is <= AVPROBE_SCORE_MAX / 4 it is recommended
* to retry with a larger probe buffer.
*/
ff_const59
AVInputFormat
*
av_probe_input_format2
(
AVProbeData
*
pd
,
int
is_opened
,
int
*
score_max
);
ff_const59
AVInputFormat
*
av_probe_input_format2
(
ff_const59
AVProbeData
*
pd
,
int
is_opened
,
int
*
score_max
);
/**
* Guess the file format.
...
...
@@ -2263,7 +2263,7 @@ ff_const59 AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened,
* demuxers with or without AVFMT_NOFILE are probed.
* @param score_ret The score of the best detection.
*/
ff_const59
AVInputFormat
*
av_probe_input_format3
(
AVProbeData
*
pd
,
int
is_opened
,
int
*
score_ret
);
ff_const59
AVInputFormat
*
av_probe_input_format3
(
ff_const59
AVProbeData
*
pd
,
int
is_opened
,
int
*
score_ret
);
/**
* Probe a bytestream to determine the input format. Each time a probe returns
...
...
libavformat/format.c
View file @
6a3520bf
...
...
@@ -125,7 +125,7 @@ ff_const59 AVInputFormat *av_find_input_format(const char *short_name)
return
NULL
;
}
ff_const59
AVInputFormat
*
av_probe_input_format3
(
AVProbeData
*
pd
,
int
is_opened
,
ff_const59
AVInputFormat
*
av_probe_input_format3
(
ff_const59
AVProbeData
*
pd
,
int
is_opened
,
int
*
score_ret
)
{
AVProbeData
lpd
=
*
pd
;
...
...
@@ -202,7 +202,7 @@ ff_const59 AVInputFormat *av_probe_input_format3(AVProbeData *pd, int is_opened,
return
fmt
;
}
ff_const59
AVInputFormat
*
av_probe_input_format2
(
AVProbeData
*
pd
,
int
is_opened
,
int
*
score_max
)
ff_const59
AVInputFormat
*
av_probe_input_format2
(
ff_const59
AVProbeData
*
pd
,
int
is_opened
,
int
*
score_max
)
{
int
score_ret
;
ff_const59
AVInputFormat
*
fmt
=
av_probe_input_format3
(
pd
,
is_opened
,
&
score_ret
);
...
...
@@ -213,7 +213,7 @@ ff_const59 AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened,
return
NULL
;
}
ff_const59
AVInputFormat
*
av_probe_input_format
(
AVProbeData
*
pd
,
int
is_opened
)
ff_const59
AVInputFormat
*
av_probe_input_format
(
ff_const59
AVProbeData
*
pd
,
int
is_opened
)
{
int
score
=
0
;
return
av_probe_input_format2
(
pd
,
is_opened
,
&
score
);
...
...
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