Fix gst_vaapi_decoder_mpeg4_parse() to initialize the packet type to
GST_MPEG4_USER_DATA so that a parse error would result in skipping
that packet. Also fix gst_vaapi_decoder_mpeg4_decode_codec_data() to
initialize status to GST_VAAPI_DECODER_STATUS_SUCCESS.
{
GstVaapiDecoderMpeg4 * const decoder =
GST_VAAPI_DECODER_MPEG4_CAST(base_decoder);
- GstVaapiDecoderStatus status;
+ GstVaapiDecoderStatus status = GST_VAAPI_DECODER_STATUS_SUCCESS;
guchar *buf;
guint pos, buf_size;
if (!buf)
return GST_VAAPI_DECODER_STATUS_ERROR_NO_DATA;
+ packet.type = GST_MPEG4_USER_DATA;
if (priv->is_svh)
result = gst_h263_parse(&packet, buf, 0, size);
else