Commit 8e1b5ba5 authored by Michael Niedermayer's avatar Michael Niedermayer

libavcodec/ac3dec.c: Avoid unspecific -1 error code

Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent c6db2e97
...@@ -452,7 +452,7 @@ static int decode_exponents(AC3DecodeContext *s, ...@@ -452,7 +452,7 @@ static int decode_exponents(AC3DecodeContext *s,
prevexp += dexp[i] - 2; prevexp += dexp[i] - 2;
if (prevexp > 24U) { if (prevexp > 24U) {
av_log(s->avctx, AV_LOG_ERROR, "exponent %d is out-of-range\n", prevexp); av_log(s->avctx, AV_LOG_ERROR, "exponent %d is out-of-range\n", prevexp);
return -1; return AVERROR_INVALIDDATA;
} }
switch (group_size) { switch (group_size) {
case 4: dexps[j++] = prevexp; case 4: dexps[j++] = prevexp;
......
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