va: av1enc: Init the output_frame_num when resetting gf group

Fixes: #3359
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6308>
This commit is contained in:
He Junyan 2024-03-09 20:16:22 +08:00 committed by GStreamer Marge Bot
parent 5f7062136d
commit 861c1a44be

View file

@ -855,6 +855,7 @@ _av1_init_gf_group (GstVaAV1GFGroup * gf_group, GQueue * reorder_list)
gf_group->use_alt = FALSE;
gf_group->intra_only = FALSE;
gf_group->last_poped_index = -1;
gf_group->output_frame_num = 0;
for (i = 0; i < MAX_GF_GROUP_SIZE * 2; i++) {
gf_group->frame_types[i] = FRAME_TYPE_INVALID;