summaryrefslogtreecommitdiff
path: root/libavcodec/elsdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/elsdec.c')
-rw-r--r--libavcodec/elsdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/elsdec.c b/libavcodec/elsdec.c
index 5e89045864..10a1a9d5e8 100644
--- a/libavcodec/elsdec.c
+++ b/libavcodec/elsdec.c
@@ -362,7 +362,7 @@ unsigned ff_els_decode_unsigned(ElsDecCtx *ctx, ElsUnsignedRung *ur)
/* handle the error/overflow case */
if (ctx->err || n >= ELS_EXPGOLOMB_LEN) {
- ctx->err = AVERROR(EOVERFLOW);
+ ctx->err = AVERROR_INVALIDDATA;
return 0;
}