UPSTREAM: [Decode] Optimize error syntax check for hevc

Media driver should avoid stopping playback by giving an ambiguous error
since invalid reference will not cause gpu hang.

But application should take care of the assert message indicating to
error syntax which may cause output corruption.

(cherry picked from commit e5e12e0de0a7240be4238eaeb0dcab57501f459b)

BUG=b:313576149
TEST=tast run <IP_ADDRESS> video.MemCheck.hevc_hw_switch

Change-Id: Ib97a9109d3689773d72900ed7385cd747c1a8a68
Signed-off-by: Sachin Kumar <sachin.kumar@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/libva-intel-media-driver/+/5102668
Tested-by: K Konda Reddy <k.konda.reddy@intel.com>
Commit-Queue: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Miguel Casas-Sanchez <mcasas@chromium.org>
Reviewed-by: Ilja Friedel <ihf@chromium.org>
2 files changed