summaryrefslogtreecommitdiff
path: root/gst-libs/gst/vaapi/gstvaapidecoder_h264.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapidecoder_h264.c')
-rw-r--r--gst-libs/gst/vaapi/gstvaapidecoder_h264.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c
index 0bc6fcde..891c0cfd 100644
--- a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c
+++ b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c
@@ -4319,9 +4319,22 @@ decode_unit (GstVaapiDecoderH264 * decoder, GstVaapiDecoderUnit * unit)
case GST_H264_NAL_SEI:
status = decode_sei (decoder, unit);
break;
+ case GST_H264_NAL_SLICE_DPA:
+ case GST_H264_NAL_SLICE_DPB:
+ case GST_H264_NAL_SLICE_DPC:
+ case GST_H264_NAL_AU_DELIMITER:
+ case GST_H264_NAL_FILLER_DATA:
+ case GST_H264_NAL_SPS_EXT:
+ case GST_H264_NAL_PREFIX_UNIT:
+ case GST_H264_NAL_DEPTH_SPS:
+ case GST_H264_NAL_SLICE_AUX:
+ case GST_H264_NAL_SLICE_DEPTH:
+ GST_DEBUG ("unsupported NAL unit type %d, just skip", pi->nalu.type);
+ status = GST_VAAPI_DECODER_STATUS_SUCCESS;
+ break;
default:
- GST_WARNING ("unsupported NAL unit type %d", pi->nalu.type);
- status = GST_VAAPI_DECODER_STATUS_ERROR_BITSTREAM_PARSER;
+ GST_WARNING ("unknown NAL unit type id %d, skip", pi->nalu.type);
+ status = GST_VAAPI_DECODER_STATUS_SUCCESS;
break;
}
return status;