mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
66703a7835
commit
ac9ddc5e8d
1 changed files with 3 additions and 4 deletions
|
@ -4050,10 +4050,9 @@ decode_picture (GstVaapiDecoderH264 * decoder, GstVaapiDecoderUnit * unit)
|
||||||
g_return_val_if_fail (sps != NULL, GST_VAAPI_DECODER_STATUS_ERROR_UNKNOWN);
|
g_return_val_if_fail (sps != NULL, GST_VAAPI_DECODER_STATUS_ERROR_UNKNOWN);
|
||||||
|
|
||||||
/* Only decode base stream for MVC */
|
/* Only decode base stream for MVC */
|
||||||
switch (sps->profile_idc) {
|
if (priv->base_only && is_mvc_profile (sps->profile_idc)) {
|
||||||
case GST_H264_PROFILE_MULTIVIEW_HIGH:
|
GST_DEBUG ("multiview sequence but base-only is set: dropping frame");
|
||||||
case GST_H264_PROFILE_STEREO_HIGH:
|
return (GstVaapiDecoderStatus) GST_VAAPI_DECODER_STATUS_DROP_FRAME;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
status = ensure_context (decoder, sps);
|
status = ensure_context (decoder, sps);
|
||||||
|
|
Loading…
Reference in a new issue