From: Michael Niedermayer Date: Wed, 1 Jul 2015 14:38:19 +0000 (+0100) Subject: elsdec: Replace EOVERFLOW with INVALIDDATA X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4e0819310e2d2eff60be2d6df28335f0739712b9;p=ffmpeg elsdec: Replace EOVERFLOW with INVALIDDATA EOVERFLOW is not available on all platforms. Signed-off-by: Michael Niedermayer --- diff --git a/libavcodec/elsdec.c b/libavcodec/elsdec.c index 5e89045864b..10a1a9d5e89 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; }