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
38a6242b
Commit
38a6242b
authored
Apr 10, 2016
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/mpegts: Remove unused argument from analyze()
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
ee7a642b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
mpegts.c
libavformat/mpegts.c
+7
-9
No files found.
libavformat/mpegts.c
View file @
38a6242b
...
...
@@ -531,7 +531,7 @@ static void mpegts_close_filter(MpegTSContext *ts, MpegTSFilter *filter)
ts
->
pids
[
pid
]
=
NULL
;
}
static
int
analyze
(
const
uint8_t
*
buf
,
int
size
,
int
packet_size
,
int
*
index
,
static
int
analyze
(
const
uint8_t
*
buf
,
int
size
,
int
packet_size
,
int
probe
)
{
int
stat
[
TS_MAX_PACKET_SIZE
];
...
...
@@ -549,8 +549,6 @@ static int analyze(const uint8_t *buf, int size, int packet_size, int *index,
stat_all
++
;
if
(
stat
[
x
]
>
best_score
)
{
best_score
=
stat
[
x
];
if
(
index
)
*
index
=
x
;
}
}
}
...
...
@@ -566,9 +564,9 @@ static int get_packet_size(const uint8_t *buf, int size)
if
(
size
<
(
TS_FEC_PACKET_SIZE
*
5
+
1
))
return
AVERROR_INVALIDDATA
;
score
=
analyze
(
buf
,
size
,
TS_PACKET_SIZE
,
NULL
,
0
);
dvhs_score
=
analyze
(
buf
,
size
,
TS_DVHS_PACKET_SIZE
,
NULL
,
0
);
fec_score
=
analyze
(
buf
,
size
,
TS_FEC_PACKET_SIZE
,
NULL
,
0
);
score
=
analyze
(
buf
,
size
,
TS_PACKET_SIZE
,
0
);
dvhs_score
=
analyze
(
buf
,
size
,
TS_DVHS_PACKET_SIZE
,
0
);
fec_score
=
analyze
(
buf
,
size
,
TS_FEC_PACKET_SIZE
,
0
);
av_log
(
NULL
,
AV_LOG_TRACE
,
"score: %d, dvhs_score: %d, fec_score: %d
\n
"
,
score
,
dvhs_score
,
fec_score
);
...
...
@@ -2463,9 +2461,9 @@ static int mpegts_probe(AVProbeData *p)
for
(
i
=
0
;
i
<
check_count
;
i
+=
CHECK_BLOCK
)
{
int
left
=
FFMIN
(
check_count
-
i
,
CHECK_BLOCK
);
int
score
=
analyze
(
p
->
buf
+
TS_PACKET_SIZE
*
i
,
TS_PACKET_SIZE
*
left
,
TS_PACKET_SIZE
,
NULL
,
1
);
int
dvhs_score
=
analyze
(
p
->
buf
+
TS_DVHS_PACKET_SIZE
*
i
,
TS_DVHS_PACKET_SIZE
*
left
,
TS_DVHS_PACKET_SIZE
,
NULL
,
1
);
int
fec_score
=
analyze
(
p
->
buf
+
TS_FEC_PACKET_SIZE
*
i
,
TS_FEC_PACKET_SIZE
*
left
,
TS_FEC_PACKET_SIZE
,
NULL
,
1
);
int
score
=
analyze
(
p
->
buf
+
TS_PACKET_SIZE
*
i
,
TS_PACKET_SIZE
*
left
,
TS_PACKET_SIZE
,
1
);
int
dvhs_score
=
analyze
(
p
->
buf
+
TS_DVHS_PACKET_SIZE
*
i
,
TS_DVHS_PACKET_SIZE
*
left
,
TS_DVHS_PACKET_SIZE
,
1
);
int
fec_score
=
analyze
(
p
->
buf
+
TS_FEC_PACKET_SIZE
*
i
,
TS_FEC_PACKET_SIZE
*
left
,
TS_FEC_PACKET_SIZE
,
1
);
score
=
FFMAX3
(
score
,
dvhs_score
,
fec_score
);
sumscore
+=
score
;
maxscore
=
FFMAX
(
maxscore
,
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