From f74313fe7fad036cc59ad40d7f0668c332ede930 Mon Sep 17 00:00:00 2001 From: zhongcong Date: Wed, 15 May 2013 11:22:37 +0800 Subject: [PATCH] h264: fix clips with user defined NAL units decode error Signed-off-by: zhongcong --- gst-libs/gst/vaapi/gstvaapidecoder_h264.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c index f3eb62a..da4dee9 100755 --- a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c @@ -3685,10 +3685,18 @@ decode_nalu(GstVaapiDecoderH264 *decoder, GstH264NalUnit *nalu) /* skip all Filler Data NALs */ status = GST_VAAPI_DECODER_STATUS_SUCCESS; break; + case GST_H264_NAL_SPS_EXT: + /* skip SPS Extension NALs */ + status = GST_VAAPI_DECODER_STATUS_SUCCESS; + break; case GST_H264_NAL_PREFIX_UNIT: /* skip prefix NALs */ status = GST_VAAPI_DECODER_STATUS_SUCCESS; break; + case GST_H264_NAL_SLICE_AUX: + /* skip Slice Aux NALs */ + status = GST_VAAPI_DECODER_STATUS_SUCCESS; + break; default: GST_WARNING("unsupported NAL unit type %d", nalu->type); status = GST_VAAPI_DECODER_STATUS_ERROR_BITSTREAM_PARSER; -- 1.7.9.5