mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 23:58:17 +00:00
h264: skip all Access Unit (AU) NALs.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
parent
6b56c84c9b
commit
c979d51da6
1 changed files with 7 additions and 1 deletions
|
@ -733,8 +733,10 @@ decode_sei(GstVaapiDecoderH264 *decoder, GstH264NalUnit *nalu)
|
||||||
|
|
||||||
memset(&sei, 0, sizeof(sei));
|
memset(&sei, 0, sizeof(sei));
|
||||||
result = gst_h264_parser_parse_sei(priv->parser, nalu, &sei);
|
result = gst_h264_parser_parse_sei(priv->parser, nalu, &sei);
|
||||||
if (result != GST_H264_PARSER_OK)
|
if (result != GST_H264_PARSER_OK) {
|
||||||
|
GST_WARNING("failed to decode SEI, payload type:%d", sei.payloadType);
|
||||||
return get_status(result);
|
return get_status(result);
|
||||||
|
}
|
||||||
|
|
||||||
return GST_VAAPI_DECODER_STATUS_SUCCESS;
|
return GST_VAAPI_DECODER_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -2235,6 +2237,10 @@ decode_buffer(GstVaapiDecoderH264 *decoder, GstBuffer *buffer)
|
||||||
case GST_H264_NAL_SEQ_END:
|
case GST_H264_NAL_SEQ_END:
|
||||||
status = decode_sequence_end(decoder);
|
status = decode_sequence_end(decoder);
|
||||||
break;
|
break;
|
||||||
|
case GST_H264_NAL_AU_DELIMITER:
|
||||||
|
/* skip all Access Unit NALs */
|
||||||
|
status = GST_VAAPI_DECODER_STATUS_SUCCESS;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
GST_DEBUG("unsupported NAL unit type %d", nalu.type);
|
GST_DEBUG("unsupported NAL unit type %d", nalu.type);
|
||||||
status = GST_VAAPI_DECODER_STATUS_ERROR_BITSTREAM_PARSER;
|
status = GST_VAAPI_DECODER_STATUS_ERROR_BITSTREAM_PARSER;
|
||||||
|
|
Loading…
Reference in a new issue