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
b5909c98
Commit
b5909c98
authored
Apr 18, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: avi: wrong signedness & missing proto
too fast :/
parent
acdf1d4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/demux/avi/avi.c
modules/demux/avi/avi.c
+4
-2
No files found.
modules/demux/avi/avi.c
View file @
b5909c98
...
@@ -228,6 +228,8 @@ static mtime_t AVI_MovieGetLength( demux_t * );
...
@@ -228,6 +228,8 @@ static mtime_t AVI_MovieGetLength( demux_t * );
static
void
AVI_MetaLoad
(
demux_t
*
,
avi_chunk_list_t
*
p_riff
,
avi_chunk_avih_t
*
p_avih
);
static
void
AVI_MetaLoad
(
demux_t
*
,
avi_chunk_list_t
*
p_riff
,
avi_chunk_avih_t
*
p_avih
);
block_t
*
ReadFrame
(
demux_t
*
p_demux
,
const
avi_track_t
*
tk
,
const
int
i_size
);
/*****************************************************************************
/*****************************************************************************
* Stream management
* Stream management
*****************************************************************************/
*****************************************************************************/
...
@@ -519,7 +521,7 @@ static int Open( vlc_object_t * p_this )
...
@@ -519,7 +521,7 @@ static int Open( vlc_object_t * p_this )
tk
->
i_width_bytes
=
p_vids
->
p_bih
->
biWidth
*
(
p_vids
->
p_bih
->
biBitCount
>>
3
);
tk
->
i_width_bytes
=
p_vids
->
p_bih
->
biWidth
*
(
p_vids
->
p_bih
->
biBitCount
>>
3
);
/* RGB DIB are coded from bottom to top */
/* RGB DIB are coded from bottom to top */
if
(
p_vids
->
p_bih
->
biHeight
>=
0
)
tk
->
b_flipped
=
true
;
if
(
p_vids
->
p_bih
->
biHeight
<
INT32_MAX
)
tk
->
b_flipped
=
true
;
}
}
else
else
{
{
...
@@ -540,7 +542,7 @@ static int Open( vlc_object_t * p_this )
...
@@ -540,7 +542,7 @@ static int Open( vlc_object_t * p_this )
fmt
.
video
.
i_frame_rate_base
=
tk
->
i_scale
;
fmt
.
video
.
i_frame_rate_base
=
tk
->
i_scale
;
/* Uncompresse Bitmap or YUV, YUV being always topdown */
/* Uncompresse Bitmap or YUV, YUV being always topdown */
if
(
fmt
.
video
.
i_height
<
0
)
if
(
fmt
.
video
.
i_height
>
INT32_MAX
)
fmt
.
video
.
i_height
=
fmt
.
video
.
i_height
=
(
unsigned
int
)(
-
(
int
)
p_vids
->
p_bih
->
biHeight
);
(
unsigned
int
)(
-
(
int
)
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