diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/ffmpeg/avutil.pas | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ffmpeg/avutil.pas b/src/lib/ffmpeg/avutil.pas index 0ad7dd31..959e8fda 100644 --- a/src/lib/ffmpeg/avutil.pas +++ b/src/lib/ffmpeg/avutil.pas @@ -196,14 +196,14 @@ const * Warning: This code is platform dependent and assumes constants * to be 32 bit. * This version does the following steps: - * 1) shr 6: shifts the sign bit to bit position 2 + * 1) shr 30: shifts the sign bit to bit position 2 * 2) and $00000002: sets all other bits to zero * positive EINVAL gives 0, negative gives 2 * 3) not: inverts all bits. This gives -1 and -3 * 4) + 2: positive EINVAL gives 1, negative -1 *) const - AVERROR_SIGN = not((EINVAL shr 6) and $00000002) + 2; + AVERROR_SIGN = not((EINVAL shr 30) and $00000002) + 2; (* #if EINVAL > 0 |