EOVERFLOW is not available on all platforms.
Unified · Split
| @@ -362,7 +362,7 @@ unsigned ff_els_decode_unsigned(ElsDecCtx *ctx, ElsUnsignedRung *ur) · 361 unmodified lines | |||
| 362 | 362 | ||
| 363 | /* handle the error/overflow case */ | 363 | /* handle the error/overflow case */ |
| 364 | if (ctx->err || n >= ELS_EXPGOLOMB_LEN) { | 364 | if (ctx->err || n >= ELS_EXPGOLOMB_LEN) { |
| 365 | ctx->err = AVERROR(EOVERFLOW); | 365 | ctx->err = AVERROR_INVALIDDATA; |
| 366 | return 0; | 366 | return 0; |
| 367 | } | 367 | } |
| 368 | 368 | ||