aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aacps.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-12-31 18:16:52 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2019-01-01 21:11:47 +0100
commit5d9a69167cb1736ba6f866580e7ab31c2d81a022 (patch)
tree996859b632d4ef4074d27c9d00e2b73bd31f7545 /libavcodec/aacps.c
parentfe17f9b956838e76e377ded48cc2b86f4dfecdcf (diff)
downloadffmpeg-5d9a69167cb1736ba6f866580e7ab31c2d81a022.tar.gz
avcodec/aacps: Return more specific error codes.
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/aacps.c')
-rw-r--r--libavcodec/aacps.c2
1 files changed, 1 insertions, 1 deletions
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)