diff mbox series

[FFmpeg-devel,v2,01/16] avcodec/vvcdec: NoBackwardPredFlag, only check active pictures

Message ID TYSPR06MB6433FE581D81EEDFAF77FDBAAA342@TYSPR06MB6433.apcprd06.prod.outlook.com
State New
Headers show
Series avcodec/vvcdec: support subpicture | expand

Checks

Context Check Description
yinshiyou/commit_msg_loongarch64 warning Please wrap lines in the body of the commit message between 60 and 72 characters.
andriy/commit_msg_x86 warning Please wrap lines in the body of the commit message between 60 and 72 characters.
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Nuo Mi March 27, 2024, 1 p.m. UTC
see "8.3.6 Decoding process for collocated picture and no backward prediction"
---
 libavcodec/vvc/vvc_mvs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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;