Handle error return from ref list in slice hdr parsing

The error returned by ref_list function was not handled by the
caller parse_slice_header.

Bug: 34672748
Change-Id: I55f6cb0e651746e77f7ff3375115894ec3964203
(cherry picked from commit 25206ffa6eeb25f32103e69f893287425ab1bd10)
diff --git a/decoder/ihevcd_parse_slice_header.c b/decoder/ihevcd_parse_slice_header.c
index e9c3073..744484e 100644
--- a/decoder/ihevcd_parse_slice_header.c
+++ b/decoder/ihevcd_parse_slice_header.c
@@ -910,7 +910,11 @@
         }
         else
         {
-            ihevcd_ref_list(ps_codec, ps_pps, ps_sps, ps_slice_hdr);
+            ret = ihevcd_ref_list(ps_codec, ps_pps, ps_sps, ps_slice_hdr);
+            if ((WORD32)IHEVCD_SUCCESS != ret)
+            {
+                return ret;
+            }
 
         }