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
a8656cd4
Commit
a8656cd4
authored
Jun 05, 2012
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegts: Remove disabled extension matching probe.
parent
d0e9415d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
mpegts.c
libavformat/mpegts.c
+0
-8
No files found.
libavformat/mpegts.c
View file @
a8656cd4
...
@@ -1825,7 +1825,6 @@ static int handle_packets(MpegTSContext *ts, int nb_packets)
...
@@ -1825,7 +1825,6 @@ static int handle_packets(MpegTSContext *ts, int nb_packets)
static
int
mpegts_probe
(
AVProbeData
*
p
)
static
int
mpegts_probe
(
AVProbeData
*
p
)
{
{
#if 1
const
int
size
=
p
->
buf_size
;
const
int
size
=
p
->
buf_size
;
int
score
,
fec_score
,
dvhs_score
;
int
score
,
fec_score
,
dvhs_score
;
int
check_count
=
size
/
TS_FEC_PACKET_SIZE
;
int
check_count
=
size
/
TS_FEC_PACKET_SIZE
;
...
@@ -1844,13 +1843,6 @@ static int mpegts_probe(AVProbeData *p)
...
@@ -1844,13 +1843,6 @@ static int mpegts_probe(AVProbeData *p)
else
if
(
dvhs_score
>
score
&&
dvhs_score
>
fec_score
&&
dvhs_score
>
6
)
return
AVPROBE_SCORE_MAX
+
dvhs_score
-
CHECK_COUNT
;
else
if
(
dvhs_score
>
score
&&
dvhs_score
>
fec_score
&&
dvhs_score
>
6
)
return
AVPROBE_SCORE_MAX
+
dvhs_score
-
CHECK_COUNT
;
else
if
(
fec_score
>
6
)
return
AVPROBE_SCORE_MAX
+
fec_score
-
CHECK_COUNT
;
else
if
(
fec_score
>
6
)
return
AVPROBE_SCORE_MAX
+
fec_score
-
CHECK_COUNT
;
else
return
-
1
;
else
return
-
1
;
#else
/* only use the extension for safer guess */
if
(
av_match_ext
(
p
->
filename
,
"ts"
))
return
AVPROBE_SCORE_MAX
;
else
return
0
;
#endif
}
}
/* return the 90kHz PCR and the extension for the 27MHz PCR. return
/* return the 90kHz PCR and the extension for the 27MHz PCR. return
...
...
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