summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott D Phillips <scott.d.phillips@intel.com>2016-08-16 11:58:38 +0300
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>2016-08-16 11:58:38 +0300
commitf31d9f37b615acd5d30cc9917ff57e5fba70d5d2 (patch)
tree9c32bc68d001f72d80c608fb945700266cbbad83
parentad3b45ebc4fc771fd9d315ac53c8ab376276ed19 (diff)
decoder: vc1: Print error on interlaced content
Interlaced video is as yet unsupported in the vc1 element. Print an error to make that more obvious. https://bugzilla.gnome.org/show_bug.cgi?id=769250
-rw-r--r--gst-libs/gst/vaapi/gstvaapidecoder_vc1.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_vc1.c b/gst-libs/gst/vaapi/gstvaapidecoder_vc1.c
index 76eb6606..00ee16ae 100644
--- a/gst-libs/gst/vaapi/gstvaapidecoder_vc1.c
+++ b/gst-libs/gst/vaapi/gstvaapidecoder_vc1.c
@@ -276,6 +276,11 @@ decode_sequence (GstVaapiDecoderVC1 * decoder, GstVC1BDU * rbdu,
priv->has_entrypoint = FALSE;
+ if (adv_hdr->interlace != 0) {
+ GST_ERROR ("interlaced sequence unsupported");
+ return GST_VAAPI_DECODER_STATUS_ERROR_UNSUPPORTED_PROFILE;
+ }
+
/* Reset POC */
if (priv->last_non_b_picture) {
if (priv->last_non_b_picture->poc == priv->next_poc)