Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
fe58fe6d
Commit
fe58fe6d
authored
Oct 19, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DMO: fix small issue in BITMAPINFOHEADER
Close #5465
parent
0e6ed51e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/codec/dmo/dmo.c
modules/codec/dmo/dmo.c
+3
-3
No files found.
modules/codec/dmo/dmo.c
View file @
fe58fe6d
...
...
@@ -499,7 +499,7 @@ static int DecOpen( decoder_t *p_dec )
BITMAPINFOHEADER
*
p_bih
;
DMO_MEDIA_TYPE
mt
;
unsigned
i_chroma
=
VLC_CODEC_YUYV
;
int
i_
planes
=
1
,
i_
bpp
=
16
;
int
i_bpp
=
16
;
int
i
=
0
;
/* Find out which chroma to use */
...
...
@@ -508,7 +508,7 @@ static int DecOpen( decoder_t *p_dec )
if
(
mt
.
subtype
.
Data1
==
VLC_CODEC_YV12
)
{
i_chroma
=
mt
.
subtype
.
Data1
;
i_
planes
=
3
;
i_
bpp
=
12
;
i_bpp
=
12
;
}
DMOFreeMediaType
(
&
mt
);
...
...
@@ -541,7 +541,7 @@ static int DecOpen( decoder_t *p_dec )
p_dec
->
fmt_in
.
video
.
i_height
*
(
p_dec
->
fmt_in
.
video
.
i_bits_per_pixel
+
7
)
/
8
;
p_bih
->
biPlanes
=
i_planes
;
p_bih
->
biPlanes
=
1
;
/* http://msdn.microsoft.com/en-us/library/dd183376%28v=vs.85%29.aspx */
p_bih
->
biSize
=
sizeof
(
BITMAPINFOHEADER
);
dmo_output_type
.
majortype
=
MEDIATYPE_Video
;
...
...
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