mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-16 09:58:19 +00:00
alsdec: Use AVERROR_INVALIDDATA in read_const_block_data
Reviewed-by: Thilo Borgmann <thilo.borgmann@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d7117138cf
commit
79bfba14b7
@ -560,7 +560,7 @@ static int read_const_block_data(ALSDecContext *ctx, ALSBlockData *bd)
|
|||||||
GetBitContext *gb = &ctx->gb;
|
GetBitContext *gb = &ctx->gb;
|
||||||
|
|
||||||
if (bd->block_length <= 0)
|
if (bd->block_length <= 0)
|
||||||
return -1;
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
*bd->raw_samples = 0;
|
*bd->raw_samples = 0;
|
||||||
*bd->const_block = get_bits1(gb); // 1 = constant value, 0 = zero block (silence)
|
*bd->const_block = get_bits1(gb); // 1 = constant value, 0 = zero block (silence)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user