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
8e2ee182
Commit
8e2ee182
authored
May 01, 2010
by
Reimar Döffinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export av_probe_input_format2.
Originally committed as revision 23002 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
50f85218
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
avformat.h
libavformat/avformat.h
+13
-1
utils.c
libavformat/utils.c
+1
-1
No files found.
libavformat/avformat.h
View file @
8e2ee182
...
...
@@ -22,7 +22,7 @@
#define AVFORMAT_AVFORMAT_H
#define LIBAVFORMAT_VERSION_MAJOR 52
#define LIBAVFORMAT_VERSION_MINOR 6
1
#define LIBAVFORMAT_VERSION_MINOR 6
2
#define LIBAVFORMAT_VERSION_MICRO 0
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
...
...
@@ -887,6 +887,18 @@ AVInputFormat *av_find_input_format(const char *short_name);
*/
AVInputFormat
*
av_probe_input_format
(
AVProbeData
*
pd
,
int
is_opened
);
/**
* Guesses the file format.
*
* @param is_opened Whether the file is already opened; determines whether
* demuxers with or without AVFMT_NOFILE are probed.
* @param score_max minimum score required to accept a detection, set to actual
* detection score afterwards.
* If the score is < AVPROBE_SCORE_MAX / 4 it is recommended
* to retry with a larger probe buffer.
*/
AVInputFormat
*
av_probe_input_format2
(
AVProbeData
*
pd
,
int
is_opened
,
int
*
score_max
);
/**
* Allocates all the structures needed to read an input stream.
* This does not open the needed codecs for decoding the stream[s].
...
...
libavformat/utils.c
View file @
8e2ee182
...
...
@@ -310,7 +310,7 @@ int av_filename_number_test(const char *filename)
return
filename
&&
(
av_get_frame_filename
(
buf
,
sizeof
(
buf
),
filename
,
1
)
>=
0
);
}
static
AVInputFormat
*
av_probe_input_format2
(
AVProbeData
*
pd
,
int
is_opened
,
int
*
score_max
)
AVInputFormat
*
av_probe_input_format2
(
AVProbeData
*
pd
,
int
is_opened
,
int
*
score_max
)
{
AVInputFormat
*
fmt1
,
*
fmt
;
int
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