Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
2756bedd
Commit
2756bedd
authored
Mar 18, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Mar 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemp3: Skip idv3 header too.
parent
dbe7718e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
mpegl3.c
dlls/winemp3.acm/mpegl3.c
+17
-0
No files found.
dlls/winemp3.acm/mpegl3.c
View file @
2756bedd
...
@@ -145,6 +145,23 @@ static void mp3_horse(PACMDRVSTREAMINSTANCE adsi,
...
@@ -145,6 +145,23 @@ static void mp3_horse(PACMDRVSTREAMINSTANCE adsi,
DWORD
buffered_during
;
DWORD
buffered_during
;
DWORD
buffered_after
;
DWORD
buffered_after
;
/* Skip leading ID v3 header */
if
(
amd
->
mp
.
fsizeold
==
-
1
&&
!
strncmp
(
"ID3"
,
(
char
*
)
src
,
3
))
{
UINT
length
=
10
;
const
char
*
header
=
(
char
*
)
src
;
TRACE
(
"Found ID3 v2.%d.%d
\n
"
,
header
[
3
],
header
[
4
]);
length
+=
(
header
[
6
]
&
0x7F
)
<<
21
;
length
+=
(
header
[
7
]
&
0x7F
)
<<
14
;
length
+=
(
header
[
8
]
&
0x7F
)
<<
7
;
length
+=
(
header
[
9
]
&
0x7F
);
TRACE
(
"Length: %u
\n
"
,
length
);
*
nsrc
=
length
;
*
ndst
=
0
;
return
;
}
buffered_before
=
get_num_buffered_bytes
(
&
amd
->
mp
);
buffered_before
=
get_num_buffered_bytes
(
&
amd
->
mp
);
ret
=
decodeMP3
(
&
amd
->
mp
,
src
,
*
nsrc
,
dst
,
*
ndst
,
&
size
);
ret
=
decodeMP3
(
&
amd
->
mp
,
src
,
*
nsrc
,
dst
,
*
ndst
,
&
size
);
buffered_during
=
get_num_buffered_bytes
(
&
amd
->
mp
);
buffered_during
=
get_num_buffered_bytes
(
&
amd
->
mp
);
...
...
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