Skip to content

avvidec: Fix dropping wrong "ghost" frames, fixes multi-threaded decoding of I-frame codecs such as DV Video

Edward Hervey requested to merge bilboed/gstreamer:ffmpeg-ghost into main

This fixes the code regarding dropping "ghost frames", that is to say input frames which ended up not producing any decoded frame.

The iteration itself makes sense.. but it was stopping at the "input" frame and not the decoded frame we just got back.

When dealing with I-frame codecs, ffmpeg will decode frames in separate frames, so there is no guarantee that they are decoding in order.

Fixes playback issues with such codecs

Merge request reports