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
f52e15df
Commit
f52e15df
authored
Nov 02, 2019
by
Zhong Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/probetest: replace the deprecated API
Signed-off-by:
Zhong Li
<
zhongli_dev@126.com
>
parent
fcbfdeea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
probetest.c
tools/probetest.c
+5
-3
No files found.
tools/probetest.c
View file @
f52e15df
...
@@ -38,9 +38,10 @@ static const char *single_format;
...
@@ -38,9 +38,10 @@ static const char *single_format;
static
void
probe
(
AVProbeData
*
pd
,
int
type
,
int
p
,
int
size
)
static
void
probe
(
AVProbeData
*
pd
,
int
type
,
int
p
,
int
size
)
{
{
int
i
=
0
;
int
i
=
0
;
AVInputFormat
*
fmt
=
NULL
;
const
AVInputFormat
*
fmt
=
NULL
;
void
*
fmt_opaque
=
NULL
;
while
((
fmt
=
av_
iformat_next
(
fmt
)))
{
while
((
fmt
=
av_
demuxer_iterate
(
&
fmt_opaque
)))
{
if
(
fmt
->
flags
&
AVFMT_NOFILE
)
if
(
fmt
->
flags
&
AVFMT_NOFILE
)
continue
;
continue
;
if
(
fmt
->
read_probe
&&
if
(
fmt
->
read_probe
&&
...
@@ -66,8 +67,9 @@ static void print_times(void)
...
@@ -66,8 +67,9 @@ static void print_times(void)
{
{
int
i
=
0
;
int
i
=
0
;
AVInputFormat
*
fmt
=
NULL
;
AVInputFormat
*
fmt
=
NULL
;
void
*
fmt_opaque
=
NULL
;
while
((
fmt
=
av_
iformat_next
(
fmt
)))
{
while
((
fmt
=
av_
demuxer_iterate
(
&
fmt_opaque
)))
{
if
(
fmt
->
flags
&
AVFMT_NOFILE
)
if
(
fmt
->
flags
&
AVFMT_NOFILE
)
continue
;
continue
;
if
(
time_array
[
i
]
>
1000000
)
{
if
(
time_array
[
i
]
>
1000000
)
{
...
...
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