summaryrefslogtreecommitdiff
path: root/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2011-09-12 18:20:00 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-01-16 11:40:50 +0100
commitce413eb83d15e6fe10bf3d1448e57d2014333223 (patch)
tree2102742e43654b617ff91192a04b030818c6180e /gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c
parentc5902b7a8478dc6f7869782b97881a40badd9149 (diff)
mpeg2: ignore system start codes (PES headers).
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c')
-rw-r--r--gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c b/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c
index 423c41f7..e0786977 100644
--- a/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c
+++ b/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c
@@ -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;