You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-29 05:57:37 +02:00
We queried the decoder whether it was able to decode sucessfully, but since we operated asynchronously, we weren't able to do anything with this information but let the user know decoding failed for the previous frame(s). Since we parse the slice headers ourselves and we're reasonably sure we can decode before actually starting to decode, this was rarely triggered on corrupt data, and hardware's understanding of whether there was an error or not is vague. There's also a semantic problem with our use of the queries - if there's a seek, we flush, but what happens to the queries is vague according to the spec. Most hardware dealt fine, since queries are nothing more than GPU memory with integers stored. But with Intel, they seem to be more of a register to which a driver must keep track of, leading to issues if there's been a reset (seek) and we query the previous submission before the seek. Just get rid of them. The query code is still used in encoding. This fixes seeking with HEVC and AV1 on Intel.
46 KiB
46 KiB