[FFmpeg-devel] [PATCH] libopenmpt: fix seeking

kimapr kimapr at mail.ru
Fri Aug 1 09:04:44 EEST 2025


revised the patch, hopefully it's better now. i also fixed
another weirdness that i didn't fix in the original patch

On 2025/07/31 19:19, Michael Niedermayer wrote:

> while your email contains quite some details, the commit message of
> just "libopenmpt: fix seeking" is too terse

added some details!

> is there any possibility of a "unknown" "position" ?
> if not its fine otherwise a check may be needed to handle that

no idea. openmpt docs don't mention the possibility, and
besides like returning a NaN there isn't really much the API
can do to indicate such a condition

> is it possible that this exceeds the int64_t range ?
> if so these out of range values should probably be replaced by AV_NOPTS_VALUE

seems unlikely! i added a check anyway though (should also catch the
unknown position if it is indicated by a NaN). rather than replacing
the value with AV_NOPTS_VALUE i just don't set it. Is that good?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libopenmpt-fix-seeking-weirdness.patch
Type: text/x-patch
Size: 2534 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250801/433c4b66/attachment.bin>


More information about the ffmpeg-devel mailing list