mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-10 06:14:01 +00:00
WMAL: Do not try to read rawpcm coefficients if bits is invalid
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
accea4d9d8
commit
680097cb6d
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user