]> git.sesse.net Git - ffmpeg/commitdiff
elsdec: Replace EOVERFLOW with INVALIDDATA
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 1 Jul 2015 14:38:19 +0000 (15:38 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 1 Jul 2015 15:26:42 +0000 (16:26 +0100)
EOVERFLOW is not available on all platforms.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/elsdec.c

index 5e89045864b15ac0c51f77b235c411cd7f41cf96..10a1a9d5e89550653bb9ed90c952a38042271277 100644 (file)
@@ -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;
     }