Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
22e94d0b
Commit
22e94d0b
authored
Jul 10, 2007
by
Chris Robinson
Committed by
Alexandre Julliard
Jul 11, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemp3: Use head_check to check for valid headers.
parent
23d3302e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
common.c
dlls/winemp3.acm/common.c
+3
-6
No files found.
dlls/winemp3.acm/common.c
View file @
22e94d0b
...
...
@@ -53,7 +53,6 @@ int pcm_point = 0;
#define HDRCMPMASK 0xfffffd00
#if 0
int
head_check
(
unsigned
long
head
)
{
if
(
(
head
&
0xffe00000
)
!=
0xffe00000
)
...
...
@@ -66,7 +65,6 @@ int head_check(unsigned long head)
return
FALSE
;
return
TRUE
;
}
#endif
/*
...
...
@@ -75,6 +73,9 @@ int head_check(unsigned long head)
*/
int
decode_header
(
struct
frame
*
fr
,
unsigned
long
newhead
)
{
if
(
head_check
(
newhead
)
==
FALSE
)
return
(
0
);
if
(
newhead
&
(
1
<<
20
)
)
{
fr
->
lsf
=
(
newhead
&
(
1
<<
19
))
?
0x0
:
0x1
;
fr
->
mpeg25
=
0
;
...
...
@@ -85,10 +86,6 @@ int decode_header(struct frame *fr,unsigned long newhead)
}
fr
->
lay
=
4
-
((
newhead
>>
17
)
&
3
);
if
(
((
newhead
>>
10
)
&
0x3
)
==
0x3
)
{
fprintf
(
stderr
,
"Stream error
\n
"
);
return
(
0
);
}
if
(
fr
->
mpeg25
)
{
fr
->
sampling_frequency
=
6
+
((
newhead
>>
10
)
&
0x3
);
}
...
...
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