Decoder: Do not conceal slices with invalid SPS/PPS

Bug: 28835995
(cherry picked from commit 3a419eac8d70cc2ef517d3aa7f9c40c4b7d98cbe)
diff --git a/decoder/ih264d_api.c b/decoder/ih264d_api.c
index a924a16..1a9e32e 100644
--- a/decoder/ih264d_api.c
+++ b/decoder/ih264d_api.c
@@ -2066,8 +2066,10 @@
             if((ret == IVD_RES_CHANGED)
                             || (ret == IVD_MEM_ALLOC_FAILED)
                             || (ret == ERROR_UNAVAIL_PICBUF_T)
-                            || (ret == ERROR_UNAVAIL_MVBUF_T))
+                            || (ret == ERROR_UNAVAIL_MVBUF_T)
+                            || (ret == ERROR_INV_SPS_PPS_T))
             {
+                ps_dec->u4_slice_start_code_found = 0;
                 break;
             }
 
@@ -2152,7 +2154,8 @@
     if((ret == IVD_RES_CHANGED)
                     || (ret == IVD_MEM_ALLOC_FAILED)
                     || (ret == ERROR_UNAVAIL_PICBUF_T)
-                    || (ret == ERROR_UNAVAIL_MVBUF_T))
+                    || (ret == ERROR_UNAVAIL_MVBUF_T)
+                    || (ret == ERROR_INV_SPS_PPS_T))
     {
 
         /* signal the decode thread */