Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
22e94d0b
Commit
22e94d0b
authored
17 years ago
by
Chris Robinson
Committed by
Alexandre Julliard
17 years ago
Browse files
Options
Downloads
Patches
Plain Diff
winemp3: Use head_check to check for valid headers.
parent
23d3302e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/winemp3.acm/common.c
+3
-6
3 additions, 6 deletions
dlls/winemp3.acm/common.c
with
3 additions
and
6 deletions
dlls/winemp3.acm/common.c
+
3
−
6
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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment