[FFmpeg-trac] #9095(avcodec:new): h264_qsv DECODER is corrupted after flush [WINDOWS]

FFmpeg trac at avcodec.org
Sun Feb 7 08:24:34 EET 2021

#9095: h264_qsv DECODER is corrupted after flush [WINDOWS]
             Reporter:  teslan      |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avcodec
              Version:  git-master  |               Resolution:
             Keywords:  qsv         |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |

Comment (by teslan):

 I'm very sorry for blatant imprecision of my expression. The comment is
 edited - i meant a corruption of decoder to the level that it does not
 provide any output frame, not a crash.

 There is also another, quite interesting part: you basically can not flush
 it. Does not matter what you do after a seek - It will always output
 exactly two more frames from a previously decoded "chunk".

 Trying to gather residual frames immediately after a flush with
 `avcodec_receive_frame` does not help as it will output invalid frames
 (with negative pts) indefinitely - without any error. The residual frames
 are outputted only after fresh packets are fed to it.

Ticket URL: <https://trac.ffmpeg.org/ticket/9095#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list