decoder: h264: fix detection of profile changes for MVC.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 4 Jun 2014 17:03:18 +0000 (19:03 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 4 Jun 2014 17:08:18 +0000 (19:08 +0200)
commitf36486a1e2dce8c2acc442a17a4452e72a419080
tree856c0c8e054744b47f8c56ab73355ba87c37758d
parent885ebf4c726fc06dcfbfdc4723b767ffeb4df5d0
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.
gst-libs/gst/vaapi/gstvaapidecoder_h264.c