h264: skip all Access Unit (AU) NALs.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
Wind Yuan 2012-02-21 02:11:20 -05:00 committed by Gwenole Beauchesne
parent 6b56c84c9b
commit c979d51da6

View file

@ -733,8 +733,10 @@ decode_sei(GstVaapiDecoderH264 *decoder, GstH264NalUnit *nalu)
memset(&sei, 0, sizeof(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 GST_VAAPI_DECODER_STATUS_SUCCESS;
}
@ -2235,6 +2237,10 @@ decode_buffer(GstVaapiDecoderH264 *decoder, GstBuffer *buffer)
case GST_H264_NAL_SEQ_END:
status = decode_sequence_end(decoder);
break;
case GST_H264_NAL_AU_DELIMITER:
/* skip all Access Unit NALs */
status = GST_VAAPI_DECODER_STATUS_SUCCESS;
break;
default:
GST_DEBUG("unsupported NAL unit type %d", nalu.type);
status = GST_VAAPI_DECODER_STATUS_ERROR_BITSTREAM_PARSER;