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
3cb64e32
Commit
3cb64e32
authored
Jun 21, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wma: fix infinite loop
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
da0dadb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wmadec.c
libavcodec/wmadec.c
+3
-3
No files found.
libavcodec/wmadec.c
View file @
3cb64e32
...
...
@@ -828,7 +828,8 @@ static int wma_decode_superframe(AVCodecContext *avctx,
}
if
(
buf_size
<
s
->
block_align
)
return
AVERROR
(
EINVAL
);
buf_size
=
s
->
block_align
;
if
(
s
->
block_align
)
buf_size
=
s
->
block_align
;
samples
=
data
;
...
...
@@ -911,9 +912,8 @@ static int wma_decode_superframe(AVCodecContext *avctx,
}
//av_log(NULL, AV_LOG_ERROR, "%d %d %d %d outbytes:%d eaten:%d\n", s->frame_len_bits, s->block_len_bits, s->frame_len, s->block_len, (int8_t *)samples - (int8_t *)data, s->block_align);
*
data_size
=
(
int8_t
*
)
samples
-
(
int8_t
*
)
data
;
return
s
->
block_align
;
return
buf_size
;
fail:
/* when error, we reset the bit reservoir */
s
->
last_superframe_len
=
0
;
...
...
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