mpeg2: ignore system start codes (PES headers).

This commit is contained in:
Gwenole Beauchesne 2011-09-12 18:20:00 +02:00
parent c5902b7a84
commit ce413eb83d

View file

@ -773,6 +773,11 @@ decode_chunks(GstVaapiDecoderMpeg2 *decoder, GstBuffer *buffer, GList *chunks)
);
break;
}
else if (tos->type >= 0xb9 && tos->type <= 0xff) {
// Ignore system start codes (PES headers)
status = GST_VAAPI_DECODER_STATUS_SUCCESS;
break;
}
GST_DEBUG("unsupported start code (0x%02x)", tos->type);
status = GST_VAAPI_DECODER_STATUS_ERROR_BITSTREAM_PARSER;
break;