vah264enc: Init missing fields in reset_state()

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6663>
This commit is contained in:
He Junyan 2024-04-17 00:03:48 +08:00 committed by GStreamer Marge Bot
parent 5706e3566c
commit 2049c7e050

View file

@ -1517,6 +1517,8 @@ gst_va_h264_enc_reset_state (GstVaBaseEnc * base)
self->level_str = NULL; self->level_str = NULL;
self->mb_width = 0; self->mb_width = 0;
self->mb_height = 0; self->mb_height = 0;
self->min_cr = 0;
self->packed_headers = 0;
self->support_trellis = FALSE; self->support_trellis = FALSE;
self->gop.i_period = 0; self->gop.i_period = 0;