aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNuo Mi <nuomi2021@gmail.com>2024-03-27 21:00:57 +0800
committerNuo Mi <nuomi2021@gmail.com>2024-04-02 20:24:31 +0800
commitcd540a333e48fea429c7b706ca12d7ba94994ec9 (patch)
treefd80ce456882effeaa82b0b843f3000285276bfd
parent8e294abd9d21ed034371ace87649300405dd5a4b (diff)
downloadffmpeg-cd540a333e48fea429c7b706ca12d7ba94994ec9.tar.gz
avcodec/vvcdec: NoBackwardPredFlag, only check active pictures
see "8.3.6 Decoding process for collocated picture and no backward prediction"
-rw-r--r--libavcodec/vvc/vvc_mvs.c2
1 files changed, 1 insertions, 1 deletions
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;