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
2a93c2f2
Commit
2a93c2f2
authored
Jan 23, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 23, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ICCompressorChoose should initialize fccType and fccHandler fields
for the full frames case as well.
parent
4cfc3874
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
avifile_private.h
dlls/avifil32/avifile_private.h
+0
-4
msvideo_main.c
dlls/msvideo/msvideo_main.c
+10
-2
vfw.h
include/vfw.h
+4
-0
No files found.
dlls/avifil32/avifile_private.h
View file @
2a93c2f2
...
...
@@ -23,10 +23,6 @@
#define MAX_AVISTREAMS 8
#endif
#ifndef comptypeDIB
#define comptypeDIB mmioFOURCC('D','I','B',' ')
#endif
#ifndef DIBWIDTHBYTES
#define WIDTHBYTES(i) (((i+31)&(~31))/8)
#define DIBWIDTHBYTES(bi) WIDTHBYTES((bi).biWidth * (bi).biBitCount)
...
...
dlls/msvideo/msvideo_main.c
View file @
2a93c2f2
...
...
@@ -749,6 +749,7 @@ static INT_PTR CALLBACK icm_choose_compressor_dlgproc(HWND hdlg, UINT msg, WPARA
{
case
WM_INITDIALOG
:
{
ICINFO
*
ic
;
WCHAR
buf
[
128
];
struct
choose_compressor
*
choose_comp
=
(
struct
choose_compressor
*
)
lparam
;
...
...
@@ -758,6 +759,11 @@ static INT_PTR CALLBACK icm_choose_compressor_dlgproc(HWND hdlg, UINT msg, WPARA
LoadStringW
(
MSVFW32_hModule
,
IDS_FULLFRAMES
,
buf
,
128
);
SendDlgItemMessageW
(
hdlg
,
IDC_COMP_LIST
,
CB_ADDSTRING
,
0
,
(
LPARAM
)
buf
);
ic
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
ICINFO
));
ic
->
fccType
=
streamtypeVIDEO
;
ic
->
fccHandler
=
comptypeDIB
;
SendDlgItemMessageW
(
hdlg
,
IDC_COMP_LIST
,
CB_SETITEMDATA
,
0
,
(
LPARAM
)
ic
);
enum_compressors
(
GetDlgItem
(
hdlg
,
IDC_COMP_LIST
));
SendDlgItemMessageW
(
hdlg
,
IDC_COMP_LIST
,
CB_SETCURSEL
,
0
,
0
);
...
...
@@ -782,8 +788,10 @@ static INT_PTR CALLBACK icm_choose_compressor_dlgproc(HWND hdlg, UINT msg, WPARA
{
struct
choose_compressor
*
choose_comp
=
(
struct
choose_compressor
*
)
GetWindowLongPtrW
(
hdlg
,
DWLP_USER
);
choose_comp
->
cv
.
hic
=
ICOpen
(
ic
->
fccType
,
ic
->
fccHandler
,
ICMODE_COMPRESS
);
if
(
choose_comp
->
cv
.
hic
)
if
(
ic
->
fccHandler
!=
comptypeDIB
)
choose_comp
->
cv
.
hic
=
ICOpen
(
ic
->
fccType
,
ic
->
fccHandler
,
ICMODE_COMPRESS
);
if
(
ic
->
fccHandler
==
comptypeDIB
||
choose_comp
->
cv
.
hic
)
{
choose_comp
->
cv
.
fccType
=
ic
->
fccType
;
choose_comp
->
cv
.
fccHandler
=
ic
->
fccHandler
;
...
...
include/vfw.h
View file @
2a93c2f2
...
...
@@ -143,6 +143,10 @@ DECLARE_HANDLE(HIC);
#define ICM_COMPRESS_FRAMES_INFO (ICM_USER+70)
#define ICM_SET_STATUS_PROC (ICM_USER+72)
#ifndef comptypeDIB
#define comptypeDIB mmioFOURCC('D','I','B',' ')
#endif
/* structs */
/* NOTE: Only the 16 bit structs are packed. Structs that are packed anyway
...
...
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