[FFmpeg-devel] [PATCH 03/16] avcodec/aacps: Return more specific error codes.
Michael Niedermayer
michael at niedermayer.cc
Mon Dec 31 20:22:33 EET 2018
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
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)
--
2.20.1
More information about the ffmpeg-devel
mailing list