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
ddc3eafe
Commit
ddc3eafe
authored
Nov 12, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg_audio: assume block_GetBytes can fail
parent
11d3a7ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
modules/codec/mpeg_audio.c
modules/codec/mpeg_audio.c
+6
-4
No files found.
modules/codec/mpeg_audio.c
View file @
ddc3eafe
...
...
@@ -448,10 +448,12 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
p_sys
->
i_free_frame_size
=
p_sys
->
i_frame_size
;
}
/* Copy the whole frame into the buffer. When we reach this point
* we already know we have enough data available. */
block_GetBytes
(
&
p_sys
->
bytestream
,
p_buf
,
__MIN
(
(
unsigned
)
p_sys
->
i_frame_size
,
p_out_buffer
->
i_buffer
)
);
/* Copy the whole frame into the buffer. */
if
(
block_GetBytes
(
&
p_sys
->
bytestream
,
p_buf
,
__MIN
(
(
unsigned
)
p_sys
->
i_frame_size
,
p_out_buffer
->
i_buffer
)
))
{
block_Release
(
p_out_buffer
);
return
NULL
;
}
/* Get beginning of next frame for libmad */
if
(
!
p_sys
->
b_packetizer
)
...
...
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