Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
b1dd2eb4
Commit
b1dd2eb4
authored
Dec 10, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed raw video maks in avi.
parent
033efbad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
modules/demux/avi/avi.c
modules/demux/avi/avi.c
+17
-10
No files found.
modules/demux/avi/avi.c
View file @
b1dd2eb4
...
...
@@ -510,27 +510,34 @@ static int Open( vlc_object_t * p_this )
case
24
:
tk
->
i_codec
=
VLC_FOURCC
(
'R'
,
'V'
,
'2'
,
'4'
);
break
;
case
16
:
/* tk->i_codec = VLC_FOURCC('R','V','1','6');*/
/* break;*/
case
16
:
/* Yes it is RV15 */
case
15
:
tk
->
i_codec
=
VLC_FOURCC
(
'R'
,
'V'
,
'1'
,
'5'
);
break
;
case
9
:
tk
->
i_codec
=
VLC_FOURCC
(
'Y'
,
'V'
,
'U'
,
'9'
);
/* <- TODO check that */
case
9
:
/* <- TODO check that */
tk
->
i_codec
=
VLC_FOURCC
(
'Y'
,
'V'
,
'U'
,
'9'
);
break
;
case
8
:
case
8
:
/* <- TODO check that */
tk
->
i_codec
=
VLC_FOURCC
(
'Y'
,
'8'
,
'0'
,
'0'
);
break
;
}
es_format_Init
(
&
fmt
,
VIDEO_ES
,
tk
->
i_codec
);
if
(
p_vids
->
p_bih
->
biBitCount
==
24
)
switch
(
tk
->
i_codec
)
{
/* This is in BGR format */
fmt
.
video
.
i_bmask
=
0x00ff0000
;
case
VLC_FOURCC
(
'R'
,
'V'
,
'2'
,
'4'
):
case
VLC_FOURCC
(
'R'
,
'V'
,
'3'
,
'2'
):
fmt
.
video
.
i_rmask
=
0x00ff0000
;
fmt
.
video
.
i_gmask
=
0x0000ff00
;
fmt
.
video
.
i_rmask
=
0x000000ff
;
fmt
.
video
.
i_bmask
=
0x000000ff
;
break
;
case
VLC_FOURCC
(
'R'
,
'V'
,
'1'
,
'5'
):
fmt
.
video
.
i_rmask
=
0x7c00
;
fmt
.
video
.
i_gmask
=
0x03e0
;
fmt
.
video
.
i_bmask
=
0x001f
;
break
;
default:
break
;
}
}
else
...
...
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