Commit 5d9a6916 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/aacps: Return more specific error codes.

Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent fe17f9b9
...@@ -118,7 +118,7 @@ static int read_ ## PAR ## _data(AVCodecContext *avctx, GetBitContext *gb, PSCon ...@@ -118,7 +118,7 @@ static int read_ ## PAR ## _data(AVCodecContext *avctx, GetBitContext *gb, PSCon
return 0; \ return 0; \
err: \ err: \
av_log(avctx, AV_LOG_ERROR, "illegal "#PAR"\n"); \ av_log(avctx, AV_LOG_ERROR, "illegal "#PAR"\n"); \
return -1; \ return AVERROR_INVALIDDATA; \
} }
READ_PAR_DATA(iid, huff_offset[table_idx], 0, FFABS(ps->iid_par[e][b]) > 7 + 8 * ps->iid_quant) READ_PAR_DATA(iid, huff_offset[table_idx], 0, FFABS(ps->iid_par[e][b]) > 7 + 8 * ps->iid_quant)
......
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