From 481d6b1f250e8471b60eeb2a219867c7a3a978fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Wed, 18 Feb 2015 11:20:42 +0200 Subject: [PATCH] VC1: decoder: Ignore VC1 user BDU's Don't return error if the processed BDU is a user one, just ignore them. https://bugzilla.gnome.org/show_bug.cgi?id=741237 Signed-off-by: Sreerenj Balachandran --- gst-libs/gst/vaapi/gstvaapidecoder_vc1.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_vc1.c b/gst-libs/gst/vaapi/gstvaapidecoder_vc1.c index 372c58214f..d37ae9bb12 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_vc1.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder_vc1.c @@ -1071,6 +1071,13 @@ decode_ebdu(GstVaapiDecoderVC1 *decoder, GstVC1BDU *ebdu) case GST_VC1_END_OF_SEQ: status = decode_sequence_end(decoder); break; + case GST_VC1_FIELD_USER: + case GST_VC1_FRAME_USER: + case GST_VC1_ENTRY_POINT_USER: + case GST_VC1_SEQUENCE_USER: + /* Let's just ignore them */ + status = GST_VAAPI_DECODER_STATUS_SUCCESS; + break; default: GST_WARNING("unsupported BDU type %d", ebdu->type); status = GST_VAAPI_DECODER_STATUS_ERROR_BITSTREAM_PARSER;