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
95953c1c
Commit
95953c1c
authored
Dec 23, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/wavpack fix *void pointer arithmetic
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
e93a73cb
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 @
95953c1c
...
...
@@ -490,8 +490,8 @@ static inline int wv_unpack_stereo(WavpackFrameContext *s, GetBitContext *gb,
if
(
last
&&
count
<
s
->
samples
)
{
int
size
=
av_get_bytes_per_sample
(
type
);
memset
(
dst_l
+
count
*
size
,
0
,
(
s
->
samples
-
count
)
*
size
);
memset
(
dst_r
+
count
*
size
,
0
,
(
s
->
samples
-
count
)
*
size
);
memset
(
(
uint8_t
*
)
dst_l
+
count
*
size
,
0
,
(
s
->
samples
-
count
)
*
size
);
memset
(
(
uint8_t
*
)
dst_r
+
count
*
size
,
0
,
(
s
->
samples
-
count
)
*
size
);
}
if
((
s
->
avctx
->
err_recognition
&
AV_EF_CRCCHECK
)
&&
...
...
@@ -558,7 +558,7 @@ static inline int wv_unpack_mono(WavpackFrameContext *s, GetBitContext *gb,
if
(
last
&&
count
<
s
->
samples
)
{
int
size
=
av_get_bytes_per_sample
(
type
);
memset
(
dst
+
count
*
size
,
0
,
(
s
->
samples
-
count
)
*
size
);
memset
(
(
uint8_t
*
)
dst
+
count
*
size
,
0
,
(
s
->
samples
-
count
)
*
size
);
}
if
(
s
->
avctx
->
err_recognition
&
AV_EF_CRCCHECK
)
{
...
...
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