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
214add2f
Commit
214add2f
authored
Apr 18, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: avi: add defines for compression types
parent
0a2313a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
modules/demux/avi/avi.c
modules/demux/avi/avi.c
+6
-3
No files found.
modules/demux/avi/avi.c
View file @
214add2f
...
...
@@ -57,6 +57,9 @@
"Recreate a index for the AVI file. Use this if your AVI file is damaged "\
"or incomplete (not seekable)." )
#define BI_RAWRGB 0x00
#define BI_RGBBITFIELDS 0x03
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
...
...
@@ -473,7 +476,7 @@ static int Open( vlc_object_t * p_this )
tk
->
i_cat
=
SPU_ES
;
break
;
}
else
if
(
p_vids
->
p_bih
->
biCompression
==
0x00
)
else
if
(
p_vids
->
p_bih
->
biCompression
==
BI_RAWRGB
)
{
switch
(
p_vids
->
p_bih
->
biBitCount
)
{
...
...
@@ -531,7 +534,7 @@ static int Open( vlc_object_t * p_this )
fmt
.
video
.
i_frame_rate
=
tk
->
i_rate
;
fmt
.
video
.
i_frame_rate_base
=
tk
->
i_scale
;
if
(
p_vids
->
p_bih
->
biCompression
==
0x00
)
if
(
p_vids
->
p_bih
->
biCompression
==
BI_RAWRGB
)
tk
->
i_width_bytes
=
p_vids
->
p_bih
->
biWidth
*
(
p_vids
->
p_bih
->
biBitCount
>>
3
);
else
tk
->
i_width_bytes
=
0
;
...
...
@@ -562,7 +565,7 @@ static int Open( vlc_object_t * p_this )
p_vids
->
p_bih
->
biBitCount
,
(
float
)
tk
->
i_rate
/
(
float
)
tk
->
i_scale
);
if
(
p_vids
->
p_bih
->
biCompression
==
0x00
&&
fmt
.
video
.
i_height
<=
0
)
if
(
p_vids
->
p_bih
->
biCompression
==
BI_RAWRGB
&&
fmt
.
video
.
i_height
<=
0
)
{
/* RGB DIB are coded from bottom to top */
fmt
.
video
.
i_height
=
...
...
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