From 5d9a69167cb1736ba6f866580e7ab31c2d81a022 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 31 Dec 2018 18:16:52 +0100 Subject: [PATCH] avcodec/aacps: Return more specific error codes. Reviewed-by: Paul B Mahol Signed-off-by: Michael Niedermayer --- libavcodec/aacps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/aacps.c b/libavcodec/aacps.c index b16c3393d1..d5dca64b0f 100644 --- a/libavcodec/aacps.c +++ b/libavcodec/aacps.c @@ -118,7 +118,7 @@ static int read_ ## PAR ## _data(AVCodecContext *avctx, GetBitContext *gb, PSCon return 0; \ err: \ 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)