(HEVC/Research) Check if the frames are sent before removing them from
the DPB.
(HEVC/Research) Fix SSE-based DPB functions