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
This commit is contained in:
Scott D Phillips 2016-08-16 11:58:38 +03:00 committed by Sreerenj Balachandran
parent ad3b45ebc4
commit f31d9f37b6

View file

@ -276,6 +276,11 @@ decode_sequence (GstVaapiDecoderVC1 * decoder, GstVC1BDU * rbdu,
priv->has_entrypoint = FALSE; priv->has_entrypoint = FALSE;
if (adv_hdr->interlace != 0) {
GST_ERROR ("interlaced sequence unsupported");
return GST_VAAPI_DECODER_STATUS_ERROR_UNSUPPORTED_PROFILE;
}
/* Reset POC */ /* Reset POC */
if (priv->last_non_b_picture) { if (priv->last_non_b_picture) {
if (priv->last_non_b_picture->poc == priv->next_poc) if (priv->last_non_b_picture->poc == priv->next_poc)