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
876ef93d
Commit
876ef93d
authored
Jul 11, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
Originally committed as revision 14168 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
6e264d45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
psxstr.c
libavformat/psxstr.c
+4
-8
No files found.
libavformat/psxstr.c
View file @
876ef93d
...
...
@@ -66,8 +66,7 @@ static const char sync_header[12] = {0x00,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf
static
int
str_probe
(
AVProbeData
*
p
)
{
int
start
;
uint8_t
*
sector
;
uint8_t
*
sector
=
p
->
buf
;
if
(
p
->
buf_size
<
RAW_CD_SECTOR_SIZE
)
return
0
;
...
...
@@ -76,14 +75,11 @@ static int str_probe(AVProbeData *p)
(
AV_RL32
(
&
p
->
buf
[
8
])
==
CDXA_TAG
))
{
/* RIFF header seen; skip 0x2C bytes */
start
=
RIFF_HEADER_SIZE
;
}
else
start
=
0
;
sector
=
p
->
buf
+
start
;
sector
+=
RIFF_HEADER_SIZE
;
}
/* look for CD sync header (00, 0xFF x 10, 00) */
if
(
memcmp
(
p
->
buf
+
start
,
sync_header
,
sizeof
(
sync_header
)))
if
(
memcmp
(
sector
,
sync_header
,
sizeof
(
sync_header
)))
return
0
;
if
(
sector
[
0x11
]
>=
32
)
...
...
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