Skip to content
Snippets Groups Projects
  • Anton Khirnov's avatar
    9d36cab4
    nvenc: fix encoding with B-frames · 9d36cab4
    Anton Khirnov authored
    When B-frames are enabled and the encoder returns success, all currently
    pending buffers immediately become valid and can be returned to the
    caller. We can only return one packet at a time, so all the other
    pending buffers should be transferred to a new 'ready' fifo, from where
    they can be returned in subsequent calls (in which the encoder does not
    produce any new output). This bug was hidden by the incorrect testing of
    the encoder return value (the return value was overwritten before it was
    tested).
    9d36cab4
    History
    nvenc: fix encoding with B-frames
    Anton Khirnov authored
    When B-frames are enabled and the encoder returns success, all currently
    pending buffers immediately become valid and can be returned to the
    caller. We can only return one packet at a time, so all the other
    pending buffers should be transferred to a new 'ready' fifo, from where
    they can be returned in subsequent calls (in which the encoder does not
    produce any new output). This bug was hidden by the incorrect testing of
    the encoder return value (the return value was overwritten before it was
    tested).