[FFmpeg-cvslog] avcodec/vvcdec: NoBackwardPredFlag, only check active pictures
Nuo Mi
git at videolan.org
Tue Apr 2 15:59:17 EEST 2024
ffmpeg | branch: master | Nuo Mi <nuomi2021 at gmail.com> | Wed Mar 27 21:00:57 2024 +0800| [cd540a333e48fea429c7b706ca12d7ba94994ec9] | committer: Nuo Mi
avcodec/vvcdec: NoBackwardPredFlag, only check active pictures
see "8.3.6 Decoding process for collocated picture and no backward prediction"
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cd540a333e48fea429c7b706ca12d7ba94994ec9
---
libavcodec/vvc/vvc_mvs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/vvc/vvc_mvs.c b/libavcodec/vvc/vvc_mvs.c
index 6398fd3571..cf92202b5b 100644
--- a/libavcodec/vvc/vvc_mvs.c
+++ b/libavcodec/vvc/vvc_mvs.c
@@ -125,7 +125,7 @@ int ff_vvc_no_backward_pred_flag(const VVCLocalContext *lc)
const RefPicList *rpl = lc->sc->rpl;
for (j = 0; j < 2; j++) {
- for (i = 0; i < rpl[j].nb_refs; i++) {
+ for (i = 0; i < lc->sc->sh.r->num_ref_idx_active[j]; i++) {
if (rpl[j].list[i] > lc->fc->ps.ph.poc) {
check_diffpicount++;
break;
More information about the ffmpeg-cvslog
mailing list