mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
decoder: h264: fix detection of profile changes for MVC.
If the VA driver exposes ad-hoc H.264 MVC profiles, then we have to be careful to detect profiles changes and not reset the underlying VA context erroneously. In MVC situations, we could indeed get a profile_idc change for every SPS that gets activated, alternatively (base-view -> non-base view -> base-view, etc.). An improved fix would be to characterize the exact profile to use once and for all when SPS NAL units are parsed. This would also allow for fallbacks to a base-view decoding only mode.
This commit is contained in:
parent
885ebf4c72
commit
f36486a1e2
1 changed files with 1 additions and 1 deletions
|
@ -1270,7 +1270,7 @@ ensure_context(GstVaapiDecoderH264 *decoder, GstH264SPS *sps)
|
|||
return GST_VAAPI_DECODER_STATUS_ERROR_UNSUPPORTED_PROFILE;
|
||||
}
|
||||
|
||||
if (priv->profile != profile) {
|
||||
if (!priv->profile || (priv->profile != profile && priv->max_views == 1)) {
|
||||
GST_DEBUG("profile changed");
|
||||
reset_context = TRUE;
|
||||
priv->profile = profile;
|
||||
|
|
Loading…
Reference in a new issue