Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
6a94cd6b
Commit
6a94cd6b
authored
Feb 27, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* avi.c: added support for rgb 32 (24 won't work under linux as the vout
handle 24 and 32 the same way :(
parent
15320bad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
modules/demux/avi/avi.c
modules/demux/avi/avi.c
+27
-2
No files found.
modules/demux/avi/avi.c
View file @
6a94cd6b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* avi.c : AVI file Stream input module for vlc
* avi.c : AVI file Stream input module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001-2004 VideoLAN
* Copyright (C) 2001-2004 VideoLAN
* $Id: avi.c,v 1.8
7 2004/02/08 18:30:30 sigmunau
Exp $
* $Id: avi.c,v 1.8
8 2004/02/27 14:05:55 fenrir
Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
...
@@ -323,7 +323,32 @@ static int Open( vlc_object_t * p_this )
...
@@ -323,7 +323,32 @@ static int Open( vlc_object_t * p_this )
tk
->
i_cat
=
VIDEO_ES
;
tk
->
i_cat
=
VIDEO_ES
;
tk
->
i_codec
=
AVI_FourccGetCodec
(
VIDEO_ES
,
tk
->
i_codec
=
AVI_FourccGetCodec
(
VIDEO_ES
,
p_vids
->
p_bih
->
biCompression
);
p_vids
->
p_bih
->
biCompression
);
es_format_Init
(
&
fmt
,
VIDEO_ES
,
p_vids
->
p_bih
->
biCompression
);
if
(
p_vids
->
p_bih
->
biCompression
==
0x00
)
{
switch
(
p_vids
->
p_bih
->
biBitCount
)
{
case
32
:
tk
->
i_codec
=
VLC_FOURCC
(
'R'
,
'V'
,
'3'
,
'2'
);
break
;
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
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 */
break
;
}
es_format_Init
(
&
fmt
,
VIDEO_ES
,
tk
->
i_codec
);
}
else
{
es_format_Init
(
&
fmt
,
VIDEO_ES
,
p_vids
->
p_bih
->
biCompression
);
}
tk
->
i_samplesize
=
0
;
tk
->
i_samplesize
=
0
;
fmt
.
video
.
i_width
=
p_vids
->
p_bih
->
biWidth
;
fmt
.
video
.
i_width
=
p_vids
->
p_bih
->
biWidth
;
fmt
.
video
.
i_height
=
p_vids
->
p_bih
->
biHeight
;
fmt
.
video
.
i_height
=
p_vids
->
p_bih
->
biHeight
;
...
...
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