[FFmpeg-cvslog] elsdec: Replace EOVERFLOW with INVALIDDATA

Michael Niedermayer git at videolan.org
Wed Jul 1 19:54:43 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jul  1 15:38:19 2015 +0100| [4e0819310e2d2eff60be2d6df28335f0739712b9] | committer: Vittorio Giovara

elsdec: Replace EOVERFLOW with INVALIDDATA

EOVERFLOW is not available on all platforms.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4e0819310e2d2eff60be2d6df28335f0739712b9
---

 libavcodec/elsdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/elsdec.c b/libavcodec/elsdec.c
index 5e89045..10a1a9d 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;
     }
 



More information about the ffmpeg-cvslog mailing list