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
0aedab03
Commit
0aedab03
authored
Sep 07, 2011
by
Laurent Aimar
Committed by
Martin Storsjö
Sep 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed invalid writes in wavpack decoder on corrupted bitstreams.
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
beefafda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wavpack.c
libavcodec/wavpack.c
+3
-3
No files found.
libavcodec/wavpack.c
View file @
0aedab03
...
@@ -1114,7 +1114,7 @@ static int wavpack_decode_block(AVCodecContext *avctx, int block_no,
...
@@ -1114,7 +1114,7 @@ static int wavpack_decode_block(AVCodecContext *avctx, int block_no,
int16_t
*
dst
=
(
int16_t
*
)
samples
+
1
;
int16_t
*
dst
=
(
int16_t
*
)
samples
+
1
;
int16_t
*
src
=
(
int16_t
*
)
samples
;
int16_t
*
src
=
(
int16_t
*
)
samples
;
int
cnt
=
samplecount
;
int
cnt
=
samplecount
;
while
(
cnt
--
){
while
(
cnt
--
>
0
){
*
dst
=
*
src
;
*
dst
=
*
src
;
src
+=
channel_stride
;
src
+=
channel_stride
;
dst
+=
channel_stride
;
dst
+=
channel_stride
;
...
@@ -1123,7 +1123,7 @@ static int wavpack_decode_block(AVCodecContext *avctx, int block_no,
...
@@ -1123,7 +1123,7 @@ static int wavpack_decode_block(AVCodecContext *avctx, int block_no,
int32_t
*
dst
=
(
int32_t
*
)
samples
+
1
;
int32_t
*
dst
=
(
int32_t
*
)
samples
+
1
;
int32_t
*
src
=
(
int32_t
*
)
samples
;
int32_t
*
src
=
(
int32_t
*
)
samples
;
int
cnt
=
samplecount
;
int
cnt
=
samplecount
;
while
(
cnt
--
){
while
(
cnt
--
>
0
){
*
dst
=
*
src
;
*
dst
=
*
src
;
src
+=
channel_stride
;
src
+=
channel_stride
;
dst
+=
channel_stride
;
dst
+=
channel_stride
;
...
@@ -1132,7 +1132,7 @@ static int wavpack_decode_block(AVCodecContext *avctx, int block_no,
...
@@ -1132,7 +1132,7 @@ static int wavpack_decode_block(AVCodecContext *avctx, int block_no,
float
*
dst
=
(
float
*
)
samples
+
1
;
float
*
dst
=
(
float
*
)
samples
+
1
;
float
*
src
=
(
float
*
)
samples
;
float
*
src
=
(
float
*
)
samples
;
int
cnt
=
samplecount
;
int
cnt
=
samplecount
;
while
(
cnt
--
){
while
(
cnt
--
>
0
){
*
dst
=
*
src
;
*
dst
=
*
src
;
src
+=
channel_stride
;
src
+=
channel_stride
;
dst
+=
channel_stride
;
dst
+=
channel_stride
;
...
...
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