Skip to content
Snippets Groups Projects
Commit 4e081931 authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Vittorio Giovara
Browse files

elsdec: Replace EOVERFLOW with INVALIDDATA


EOVERFLOW is not available on all platforms.

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent f91fe24e
No related branches found
No related tags found
No related merge requests found
...@@ -362,7 +362,7 @@ unsigned ff_els_decode_unsigned(ElsDecCtx *ctx, ElsUnsignedRung *ur) ...@@ -362,7 +362,7 @@ unsigned ff_els_decode_unsigned(ElsDecCtx *ctx, ElsUnsignedRung *ur)
/* handle the error/overflow case */ /* handle the error/overflow case */
if (ctx->err || n >= ELS_EXPGOLOMB_LEN) { if (ctx->err || n >= ELS_EXPGOLOMB_LEN) {
ctx->err = AVERROR(EOVERFLOW); ctx->err = AVERROR_INVALIDDATA;
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment