Commit 79bfba14 authored by Michael Niedermayer's avatar Michael Niedermayer

alsdec: Use AVERROR_INVALIDDATA in read_const_block_data

Reviewed-by: 's avatarThilo Borgmann <thilo.borgmann@googlemail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d7117138
......@@ -560,7 +560,7 @@ static int read_const_block_data(ALSDecContext *ctx, ALSBlockData *bd)
GetBitContext *gb = &ctx->gb;
if (bd->block_length <= 0)
return -1;
return AVERROR_INVALIDDATA;
*bd->raw_samples = 0;
*bd->const_block = get_bits1(gb); // 1 = constant value, 0 = zero block (silence)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment