]> git.nihav.org Git - nihav-player.git/commit
hwdec_vaapi: rework frame reorderer
authorKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 28 Jan 2026 18:04:17 +0000 (19:04 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 28 Jan 2026 18:04:17 +0000 (19:04 +0100)
commit4a4bf02619a82f6ffb231e56f09b5194fe31f3d5
tree2886870b8958cbe1e288e10d5afcb079961d8073
parent25c08109e578383557e1d023b26d0227f08662d3
hwdec_vaapi: rework frame reorderer

Previous version tried to be "smart" by re-arranging non-reference frames
between reference frames. This approach worked fine for simpler files but
failed with more complex reference structure (like B-pyramid).

New version simply assumes monotone increasing IDs, inserts frames into
the queue according to it and outputs first frame as soon as it is clear
that no frames will be inserted before it.
hwdec-vaapi/src/lib.rs