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
6c0587c2
Commit
6c0587c2
authored
Apr 18, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: avi: add E_NOMEM returns
parent
9bf77558
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
modules/demux/avi/libavi.c
modules/demux/avi/libavi.c
+8
-0
No files found.
modules/demux/avi/libavi.c
View file @
6c0587c2
...
@@ -338,6 +338,10 @@ static int AVI_ChunkRead_strf( stream_t *s, avi_chunk_t *p_chk )
...
@@ -338,6 +338,10 @@ static int AVI_ChunkRead_strf( stream_t *s, avi_chunk_t *p_chk )
case
(
AVIFOURCC_auds
):
case
(
AVIFOURCC_auds
):
p_chk
->
strf
.
auds
.
i_cat
=
AUDIO_ES
;
p_chk
->
strf
.
auds
.
i_cat
=
AUDIO_ES
;
p_chk
->
strf
.
auds
.
p_wf
=
xmalloc
(
__MAX
(
p_chk
->
common
.
i_chunk_size
,
sizeof
(
WAVEFORMATEX
)
)
);
p_chk
->
strf
.
auds
.
p_wf
=
xmalloc
(
__MAX
(
p_chk
->
common
.
i_chunk_size
,
sizeof
(
WAVEFORMATEX
)
)
);
if
(
!
p_chk
->
strf
.
auds
.
p_wf
)
{
AVI_READCHUNK_EXIT
(
VLC_ENOMEM
);
}
AVI_READ2BYTES
(
p_chk
->
strf
.
auds
.
p_wf
->
wFormatTag
);
AVI_READ2BYTES
(
p_chk
->
strf
.
auds
.
p_wf
->
wFormatTag
);
AVI_READ2BYTES
(
p_chk
->
strf
.
auds
.
p_wf
->
nChannels
);
AVI_READ2BYTES
(
p_chk
->
strf
.
auds
.
p_wf
->
nChannels
);
AVI_READ4BYTES
(
p_chk
->
strf
.
auds
.
p_wf
->
nSamplesPerSec
);
AVI_READ4BYTES
(
p_chk
->
strf
.
auds
.
p_wf
->
nSamplesPerSec
);
...
@@ -388,6 +392,10 @@ static int AVI_ChunkRead_strf( stream_t *s, avi_chunk_t *p_chk )
...
@@ -388,6 +392,10 @@ static int AVI_ChunkRead_strf( stream_t *s, avi_chunk_t *p_chk )
p_chk
->
strf
.
vids
.
i_cat
=
VIDEO_ES
;
p_chk
->
strf
.
vids
.
i_cat
=
VIDEO_ES
;
p_chk
->
strf
.
vids
.
p_bih
=
xmalloc
(
__MAX
(
p_chk
->
common
.
i_chunk_size
,
p_chk
->
strf
.
vids
.
p_bih
=
xmalloc
(
__MAX
(
p_chk
->
common
.
i_chunk_size
,
sizeof
(
*
p_chk
->
strf
.
vids
.
p_bih
)
)
);
sizeof
(
*
p_chk
->
strf
.
vids
.
p_bih
)
)
);
if
(
!
p_chk
->
strf
.
vids
.
p_bih
)
{
AVI_READCHUNK_EXIT
(
VLC_ENOMEM
);
}
AVI_READ4BYTES
(
p_chk
->
strf
.
vids
.
p_bih
->
biSize
);
AVI_READ4BYTES
(
p_chk
->
strf
.
vids
.
p_bih
->
biSize
);
AVI_READ4BYTES
(
p_chk
->
strf
.
vids
.
p_bih
->
biWidth
);
AVI_READ4BYTES
(
p_chk
->
strf
.
vids
.
p_bih
->
biWidth
);
AVI_READ4BYTES
(
p_chk
->
strf
.
vids
.
p_bih
->
biHeight
);
AVI_READ4BYTES
(
p_chk
->
strf
.
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