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
680097cb
Commit
680097cb
authored
Apr 13, 2012
by
Michael Niedermayer
Committed by
Martin Storsjö
Apr 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WMAL: Do not try to read rawpcm coefficients if bits is invalid
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
accea4d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
wmalosslessdec.c
libavcodec/wmalosslessdec.c
+5
-0
No files found.
libavcodec/wmalosslessdec.c
View file @
680097cb
...
...
@@ -936,6 +936,11 @@ static int decode_subframe(WmallDecodeCtx *s)
if
(
rawpcm_tile
)
{
int
bits
=
s
->
bits_per_sample
-
padding_zeroes
;
if
(
bits
<=
0
)
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"Invalid number of padding bits in raw PCM tile
\n
"
);
return
AVERROR_INVALIDDATA
;
}
av_dlog
(
s
->
avctx
,
"RAWPCM %d bits per sample. "
"total %d bits, remain=%d
\n
"
,
bits
,
bits
*
s
->
num_channels
*
subframe_len
,
get_bits_count
(
&
s
->
gb
));
...
...
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