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
523552fc
Commit
523552fc
authored
Apr 23, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Apr 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Remove unused variables.
parent
0ba86774
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
15 deletions
+1
-15
avidec.c
dlls/quartz/avidec.c
+0
-2
mpegsplit.c
dlls/quartz/mpegsplit.c
+1
-4
videorenderer.c
dlls/quartz/videorenderer.c
+0
-9
No files found.
dlls/quartz/avidec.c
View file @
523552fc
...
...
@@ -70,7 +70,6 @@ static HRESULT AVIDec_ProcessBegin(TransformFilterImpl* pTransformFilter)
static
HRESULT
AVIDec_ProcessSampleData
(
TransformFilterImpl
*
pTransformFilter
,
IMediaSample
*
pSample
)
{
AVIDecImpl
*
This
=
(
AVIDecImpl
*
)
pTransformFilter
;
VIDEOINFOHEADER
*
format
;
AM_MEDIA_TYPE
amt
;
HRESULT
hr
;
DWORD
res
;
...
...
@@ -96,7 +95,6 @@ static HRESULT AVIDec_ProcessSampleData(TransformFilterImpl* pTransformFilter, I
ERR
(
"Unable to retrieve media type
\n
"
);
goto
error
;
}
format
=
(
VIDEOINFOHEADER
*
)
amt
.
pbFormat
;
/* Update input size to match sample size */
This
->
pBihIn
->
biSizeImage
=
cbSrcStream
;
...
...
dlls/quartz/mpegsplit.c
View file @
523552fc
...
...
@@ -123,7 +123,7 @@ static HRESULT parse_header(BYTE *header, LONGLONG *plen, LONGLONG *pduration)
{
LONGLONG
duration
;
int
bitrate_index
,
freq_index
,
mode_ext
,
emphasis
,
lsf
=
1
,
mpeg1
,
layer
,
mode
,
padding
,
bitrate
,
length
;
int
bitrate_index
,
freq_index
,
lsf
=
1
,
mpeg1
,
layer
,
padding
,
bitrate
,
length
;
if
(
!
(
header
[
0
]
==
0xff
&&
((
header
[
1
]
>>
5
)
&
0x7
)
==
0x7
&&
((
header
[
1
]
>>
1
)
&
0x3
)
!=
0
&&
((
header
[
2
]
>>
4
)
&
0xf
)
!=
0xf
&&
...
...
@@ -141,9 +141,6 @@ static HRESULT parse_header(BYTE *header, LONGLONG *plen, LONGLONG *pduration)
bitrate_index
=
((
header
[
2
]
>>
4
)
&
0xf
);
freq_index
=
((
header
[
2
]
>>
2
)
&
0x3
)
+
(
mpeg1
?
(
lsf
*
3
)
:
6
);
padding
=
((
header
[
2
]
>>
1
)
&
0x1
);
mode
=
((
header
[
3
]
>>
6
)
&
0x3
);
mode_ext
=
((
header
[
3
]
>>
4
)
&
0x3
);
emphasis
=
((
header
[
3
]
>>
0
)
&
0x3
);
bitrate
=
tabsel_123
[
lsf
][
layer
-
1
][
bitrate_index
]
*
1000
;
if
(
!
bitrate
||
layer
!=
3
)
...
...
dlls/quartz/videorenderer.c
View file @
523552fc
...
...
@@ -267,16 +267,11 @@ static DWORD VideoRenderer_SendSampleData(VideoRendererImpl* This, LPBYTE data,
{
AM_MEDIA_TYPE
amt
;
HRESULT
hr
=
S_OK
;
DDSURFACEDESC
sdesc
;
int
width
;
int
height
;
LPBYTE
palette
=
NULL
;
HDC
hDC
;
BITMAPINFOHEADER
*
bmiHeader
;
TRACE
(
"%p %p %d
\n
"
,
This
,
data
,
size
);
sdesc
.
dwSize
=
sizeof
(
sdesc
);
hr
=
IPin_ConnectionMediaType
(
This
->
ppPins
[
0
],
&
amt
);
if
(
FAILED
(
hr
))
{
ERR
(
"Unable to retrieve media type
\n
"
);
...
...
@@ -306,10 +301,6 @@ static DWORD VideoRenderer_SendSampleData(VideoRendererImpl* This, LPBYTE data,
TRACE
(
"biCompression = %s
\n
"
,
debugstr_an
((
LPSTR
)
&
(
bmiHeader
->
biCompression
),
4
));
TRACE
(
"biSizeImage = %d
\n
"
,
bmiHeader
->
biSizeImage
);
width
=
bmiHeader
->
biWidth
;
height
=
bmiHeader
->
biHeight
;
palette
=
((
LPBYTE
)
bmiHeader
)
+
bmiHeader
->
biSize
;
if
(
!
This
->
init
)
{
if
(
!
This
->
WindowPos
.
right
||
!
This
->
WindowPos
.
bottom
)
...
...
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