summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2020-05-25 15:46:58 +0200
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2020-05-25 16:01:44 +0200
commit593f6650ef0ca751a28ca2631405efaa7bec11a5 (patch)
treefa5bedda91b393b7b92eca7d6166fcf6ee9ee222 /gst-libs
parente68fece3e60678ae8def604aa6eaa6e2a1ab8b17 (diff)
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>
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/vaapi/gstvaapidecoder_h264.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c
index 4c64d5e4..fad3d0e8 100644
--- a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c
+++ b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c
@@ -1832,6 +1832,12 @@ parse_pps (GstVaapiDecoderH264 * decoder, GstVaapiDecoderUnit * unit)
return get_status (result);
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;
}