[FFmpeg-cvslog] avcodec/vvc/ps: reset sps_id_used on flush

James Almer git at videolan.org
Mon Apr 8 14:57:49 EEST 2024


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Apr  7 11:45:41 2024 -0300| [9eca5b8369b85cb91b6636f37f652cbb835fdbc1] | committer: James Almer

avcodec/vvc/ps: reset sps_id_used on flush

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9eca5b8369b85cb91b6636f37f652cbb835fdbc1
---

 libavcodec/vvc/dec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/vvc/dec.c b/libavcodec/vvc/dec.c
index eb447604fe..463536512e 100644
--- a/libavcodec/vvc/dec.c
+++ b/libavcodec/vvc/dec.c
@@ -963,6 +963,8 @@ static av_cold void vvc_decode_flush(AVCodecContext *avctx)
         ff_vvc_flush_dpb(last);
     }
 
+    s->ps->sps_id_used = 0;
+
     s->eos = 1;
 }
 



More information about the ffmpeg-cvslog mailing list