Fix uninitialized variables when decoding SPS and PPS NAL units from
"codec-data" buffers. This is particularly important when seeking ops
are involved, and the new persistent states are used more often.
https://bugzilla.gnome.org/show_bug.cgi?id=750094
goto cleanup;
ofs = pi->nalu.offset + pi->nalu.size;
goto cleanup;
ofs = pi->nalu.offset + pi->nalu.size;
+ pi->state = priv->parser_state;
+ pi->flags = 0;
+
status = decode_sps(decoder, &unit);
if (status != GST_VAAPI_DECODER_STATUS_SUCCESS)
goto cleanup;
status = decode_sps(decoder, &unit);
if (status != GST_VAAPI_DECODER_STATUS_SUCCESS)
goto cleanup;
goto cleanup;
ofs = pi->nalu.offset + pi->nalu.size;
goto cleanup;
ofs = pi->nalu.offset + pi->nalu.size;
+ pi->state = priv->parser_state;
+ pi->flags = 0;
+
status = decode_pps(decoder, &unit);
if (status != GST_VAAPI_DECODER_STATUS_SUCCESS)
goto cleanup;
status = decode_pps(decoder, &unit);
if (status != GST_VAAPI_DECODER_STATUS_SUCCESS)
goto cleanup;