vaencoder: Reset attribute index to one.

Further fix to 4ffb3663 where I forgot to reset the attribute index.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3285>
This commit is contained in:
Víctor Manuel Jáquez Leal 2022-10-27 14:20:37 +02:00 committed by GStreamer Marge Bot
parent 1c1b0380cb
commit 96f0521155

View file

@ -350,7 +350,7 @@ gst_va_encoder_open (GstVaEncoder * self, VAProfile profile,
GArray *surface_formats = NULL;
VAStatus status;
GstBufferPool *recon_pool = NULL;
guint attrib_idx = 2;
guint attrib_idx = 1;
g_return_val_if_fail (GST_IS_VA_ENCODER (self), FALSE);
g_return_val_if_fail (codedbuf_size > 0, FALSE);