Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
b15d3db8
Commit
b15d3db8
authored
Feb 20, 2022
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/wavpack: do not process only first non-zero field of int32info chunk
Fixes bitexact decoding with high bit depth samples.
parent
df98e8e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
wavpack.c
libavcodec/wavpack.c
+6
-4
No files found.
libavcodec/wavpack.c
View file @
b15d3db8
...
...
@@ -1303,14 +1303,16 @@ static int wavpack_decode_block(AVCodecContext *avctx, int block_no,
av_log
(
avctx
,
AV_LOG_ERROR
,
"Invalid INT32INFO, extra_bits = %d (> 30)
\n
"
,
val
[
0
]);
continue
;
}
else
if
(
val
[
0
])
{
}
else
{
s
->
extra_bits
=
val
[
0
];
}
else
if
(
val
[
1
])
{
}
if
(
val
[
1
])
s
->
shift
=
val
[
1
];
}
else
if
(
val
[
2
])
{
if
(
val
[
2
])
{
s
->
and
=
s
->
or
=
1
;
s
->
shift
=
val
[
2
];
}
else
if
(
val
[
3
])
{
}
if
(
val
[
3
])
{
s
->
and
=
1
;
s
->
shift
=
val
[
3
];
}
...
...
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