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
70c6595d
Commit
70c6595d
authored
Dec 18, 2002
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./modules/demux/avi/libavi.c: added an additional sanity check for
corrupted headers.
parent
287923fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/demux/avi/libavi.c
modules/demux/avi/libavi.c
+3
-2
No files found.
modules/demux/avi/libavi.c
View file @
70c6595d
...
...
@@ -2,7 +2,7 @@
* libavi.c :
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: libavi.c,v 1.1
1 2002/12/18 15:52:06 fenrir
Exp $
* $Id: libavi.c,v 1.1
2 2002/12/18 16:16:30 sam
Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -527,7 +527,8 @@ static int AVI_ChunkRead_strf( input_thread_t *p_input,
AVI_READ4BYTES
(
p_chk
->
strf
.
auds
.
p_wf
->
nAvgBytesPerSec
);
AVI_READ2BYTES
(
p_chk
->
strf
.
auds
.
p_wf
->
nBlockAlign
);
AVI_READ2BYTES
(
p_chk
->
strf
.
auds
.
p_wf
->
wBitsPerSample
);
if
(
p_chk
->
strf
.
auds
.
p_wf
->
wFormatTag
!=
WAVE_FORMAT_PCM
)
if
(
p_chk
->
strf
.
auds
.
p_wf
->
wFormatTag
!=
WAVE_FORMAT_PCM
&&
p_chk
->
common
.
i_chunk_size
>
sizeof
(
WAVEFORMATEX
)
)
{
AVI_READ2BYTES
(
p_chk
->
strf
.
auds
.
p_wf
->
cbSize
);
/* prevent segfault */
...
...
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