Summary: | multimedia/mplayer: mkv seeking above 2GB broken with ffmpeg 4.2 | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Christian Weisgerber <naddy> | ||||
Component: | Individual Port(s) | Assignee: | Jan Beich <jbeich> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | jbeich, riggs | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(jbeich) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
See Also: | https://trac.ffmpeg.org/ticket/8084 | ||||||
Attachments: |
|
Description
Christian Weisgerber
![]() ![]() I was mistaken. This is indeed a bug in multimedia/ffmpeg. Brad Smith provided a fix on OpenBSD: "matroska_reset_status (a function that is used during seeking (among other things)) used an int for the return value of avio_seek which returns an int64_t. Checking the return value then indicated an error even though the seek was successfull for targets in the range of 2GB-4GB, 6GB-8GB, ... This error implied that the status hasn't been reset and in particular, the old level was still considered to be in force, so that ebml_parse returned errors because the newly parsed elements were of course not contained in the previously active and still wrongly considered active master element any more." Created attachment 206641 [details]
avformat/matroskadec: Fix seeking
Fix by Brad Smith (originally for OpenBSD).
A commit references this bug: Author: jbeich Date: Sat Aug 17 21:04:33 UTC 2019 New revision: 509174 URL: https://svnweb.freebsd.org/changeset/ports/509174 Log: multimedia/ffmpeg: unbreak mkv seeking beyond 2gb after r508216 PR: 239905 Reported by: naddy Obtained from: upstream (release/4.2 branch) Changes: head/multimedia/ffmpeg/Makefile head/multimedia/ffmpeg/files/patch-libavformat_matroskadec.c |