libs: decoder: h264: disallow multiple slice group

As far as we know there are no VAAPI drivers supporting FMO, which
migth be used in baseline streams.

This commit is a continuation of
https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/328

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/332>
This commit is contained in:
Víctor Manuel Jáquez Leal 2020-05-25 15:46:58 +02:00
parent e68fece3e6
commit 593f6650ef

View file

@ -1832,6 +1832,12 @@ parse_pps (GstVaapiDecoderH264 * decoder, GstVaapiDecoderUnit * unit)
return get_status (result); return get_status (result);
priv->parser_state |= GST_H264_VIDEO_STATE_GOT_PPS; priv->parser_state |= GST_H264_VIDEO_STATE_GOT_PPS;
if (pps->num_slice_groups_minus1 > 0) {
GST_FIXME ("FMO is not supported");
return GST_VAAPI_DECODER_STATUS_ERROR_BITSTREAM_PARSER;
}
return GST_VAAPI_DECODER_STATUS_SUCCESS; return GST_VAAPI_DECODER_STATUS_SUCCESS;
} }