Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
2278ecc4
Commit
2278ecc4
authored
Dec 24, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vmdav: check that theres enough space for a chunk remaining.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
66f71f3b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vmdav.c
libavcodec/vmdav.c
+1
-1
No files found.
libavcodec/vmdav.c
View file @
2278ecc4
...
@@ -618,7 +618,7 @@ static int vmdaudio_decode_frame(AVCodecContext *avctx, void *data,
...
@@ -618,7 +618,7 @@ static int vmdaudio_decode_frame(AVCodecContext *avctx, void *data,
/* decode audio chunks */
/* decode audio chunks */
if
(
audio_chunks
>
0
)
{
if
(
audio_chunks
>
0
)
{
buf_end
=
buf
+
buf_size
;
buf_end
=
buf
+
buf_size
;
while
(
buf
<
buf_end
)
{
while
(
buf_end
-
buf
>=
s
->
chunk_size
)
{
if
(
s
->
out_bps
==
2
)
{
if
(
s
->
out_bps
==
2
)
{
decode_audio_s16
(
output_samples_s16
,
buf
,
s
->
chunk_size
,
decode_audio_s16
(
output_samples_s16
,
buf
,
s
->
chunk_size
,
avctx
->
channels
);
avctx
->
channels
);
...
...
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