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
f95257d2
Commit
f95257d2
authored
May 11, 2011
by
Clément Bœsch
Committed by
Diego Biurrun
May 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oggdec: simplify ogg_probe
Signed-off-by:
Diego Biurrun
<
diego@biurrun.de
>
parent
c8f487de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
oggdec.c
libavformat/oggdec.c
+2
-5
No files found.
libavformat/oggdec.c
View file @
f95257d2
...
...
@@ -642,12 +642,9 @@ static int ogg_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp
static
int
ogg_probe
(
AVProbeData
*
p
)
{
if
(
p
->
buf
[
0
]
==
'O'
&&
p
->
buf
[
1
]
==
'g'
&&
p
->
buf
[
2
]
==
'g'
&&
p
->
buf
[
3
]
==
'S'
&&
p
->
buf
[
4
]
==
0x0
&&
p
->
buf
[
5
]
<=
0x7
)
if
(
!
memcmp
(
"OggS"
,
p
->
buf
,
5
)
&&
p
->
buf
[
5
]
<=
0x7
)
return
AVPROBE_SCORE_MAX
;
else
return
0
;
return
0
;
}
AVInputFormat
ff_ogg_demuxer
=
{
...
...
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