libs: decoder: h264: decode MVC base view only

If processed SPS has mvc profile and the configuration is set to
base-only, the frame is drop.

https://bugzilla.gnome.org/show_bug.cgi?id=732265
This commit is contained in:
orestisf 2017-07-25 22:54:30 +03:00 committed by Víctor Manuel Jáquez Leal
parent 66703a7835
commit ac9ddc5e8d

View file

@ -4050,10 +4050,9 @@ decode_picture (GstVaapiDecoderH264 * decoder, GstVaapiDecoderUnit * unit)
g_return_val_if_fail (sps != NULL, GST_VAAPI_DECODER_STATUS_ERROR_UNKNOWN);
/* Only decode base stream for MVC */
switch (sps->profile_idc) {
case GST_H264_PROFILE_MULTIVIEW_HIGH:
case GST_H264_PROFILE_STEREO_HIGH:
break;
if (priv->base_only && is_mvc_profile (sps->profile_idc)) {
GST_DEBUG ("multiview sequence but base-only is set: dropping frame");
return (GstVaapiDecoderStatus) GST_VAAPI_DECODER_STATUS_DROP_FRAME;
}
status = ensure_context (decoder, sps);