mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 14:11:15 +00:00
va: av1enc: Fix the reference number setting bug
The current way will let the total reference number surplus the reference number set by the "ref-frames" property. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6507>
This commit is contained in:
parent
f1d28fdcf7
commit
c4bb6d301e
1 changed files with 2 additions and 2 deletions
|
@ -2058,7 +2058,7 @@ _av1_generate_gop_structure (GstVaAV1Enc * self)
|
||||||
l0++;
|
l0++;
|
||||||
list0--;
|
list0--;
|
||||||
}
|
}
|
||||||
if (l0 + l1 > self->gop.num_ref_frames)
|
if (l0 + l1 >= self->gop.num_ref_frames)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (list1 > 0) {
|
if (list1 > 0) {
|
||||||
|
@ -2066,7 +2066,7 @@ _av1_generate_gop_structure (GstVaAV1Enc * self)
|
||||||
list1--;
|
list1--;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (l0 + l1 > self->gop.num_ref_frames)
|
if (l0 + l1 >= self->gop.num_ref_frames)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue