[FFmpeg-devel] [PATCHv2] [RFC] libavcodec/hevc_refs: Clear DPB of old frames

Kieran Kunhya kierank at obe.tv
Tue Sep 15 05:38:00 EEST 2020


On Mon, 14 Sep 2020 at 17:37, Kieran Kunhya <kierank at obe.tv> wrote:

> From 21bf6e5eac61d34f270534dd5a2a7229967c1ee9 Mon Sep 17 00:00:00 2001
> From: Kieran Kunhya <kierank at obe.tv>
> Date: Thu, 16 Jul 2020 20:29:24 +0100
> Subject: [PATCHv2] [RFC] libavcodec/hevc_refs: Clear DPB of old frames
>
> During glitching or looping streams, old frames remain in the DPB.
> The decoder incorrectly thinks that the DPB contains the right number
> of buffered frames to output and reordering breaks badly
>

It seems there are also legal streams that have jumps in POC.
So I am really not sure how one distinguishes between a glitch or stream
loop which requires cleaning out the DPB vs a genuine stream.

Kieran


More information about the ffmpeg-devel mailing list