diff options
author | Scott D Phillips <scott.d.phillips@intel.com> | 2016-08-16 11:58:38 +0300 |
---|---|---|
committer | Sreerenj Balachandran <sreerenj.balachandran@intel.com> | 2016-08-16 14:58:18 +0300 |
commit | c42b23cba6eeb33aedb669e5fc0f3ad8f655dbe4 (patch) | |
tree | 4417da0beb1c3fe90c785220661446316fc3f76c | |
parent | 2f519a1e3f4dd28ca65366dec459225bb135c533 (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.c | 5 |
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 0a34d7ed..c057d8f3 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) |