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
24e87f7f
Commit
24e87f7f
authored
Aug 06, 2014
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obsolete FF_API_PROBE_MIME cruft.
parent
472f9ed3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
12 deletions
+0
-12
avformat.h
libavformat/avformat.h
+0
-2
format.c
libavformat/format.c
+0
-6
version.h
libavformat/version.h
+0
-4
No files found.
libavformat/avformat.h
View file @
24e87f7f
...
...
@@ -391,9 +391,7 @@ typedef struct AVProbeData {
const
char
*
filename
;
unsigned
char
*
buf
;
/**< Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero. */
int
buf_size
;
/**< Size of buf except extra allocated bytes */
#ifdef FF_API_PROBE_MIME
uint8_t
*
mime_type
;
/**< mime_type, when known. */
#endif
}
AVProbeData
;
#define AVPROBE_SCORE_EXTENSION 50 ///< score for file extension
...
...
libavformat/format.c
View file @
24e87f7f
...
...
@@ -195,10 +195,8 @@ AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened,
if
(
av_match_ext
(
lpd
.
filename
,
fmt1
->
extensions
))
score
=
AVPROBE_SCORE_EXTENSION
;
}
#ifdef FF_API_PROBE_MIME
if
(
av_match_name
(
lpd
.
mime_type
,
fmt1
->
mime_type
))
score
=
FFMAX
(
score
,
AVPROBE_SCORE_EXTENSION
);
#endif
if
(
score
>
*
score_max
)
{
*
score_max
=
score
;
fmt
=
fmt1
;
...
...
@@ -256,10 +254,8 @@ int av_probe_input_buffer(AVIOContext *pb, AVInputFormat **fmt,
return
AVERROR
(
EINVAL
);
avio_skip
(
pb
,
offset
);
max_probe_size
-=
offset
;
#ifdef FF_API_PROBE_MIME
if
(
pb
->
av_class
)
av_opt_get
(
pb
,
"mime_type"
,
AV_OPT_SEARCH_CHILDREN
,
&
pd
.
mime_type
);
#endif
for
(
probe_size
=
PROBE_BUF_MIN
;
probe_size
<=
max_probe_size
&&
!*
fmt
;
probe_size
=
FFMIN
(
probe_size
<<
1
,
FFMAX
(
max_probe_size
,
probe_size
+
1
)))
{
...
...
@@ -305,8 +301,6 @@ fail:
(
ret
=
ffio_rewind_with_probe_data
(
pb
,
buf
,
pd
.
buf_size
))
<
0
)
{
av_free
(
buf
);
}
#ifdef FF_API_PROBE_MIME
av_free
(
pd
.
mime_type
);
#endif
return
ret
;
}
libavformat/version.h
View file @
24e87f7f
...
...
@@ -61,8 +61,4 @@
#define FF_API_LAVF_CODEC_TB (LIBAVFORMAT_VERSION_MAJOR < 57)
#endif
#ifndef FF_API_PROBE_MIME
#define FF_API_PROBE_MIME (LIBAVFORMAT_VERSION_MAJOR > 55)
#endif
#endif
/* AVFORMAT_VERSION_H */
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