From 25206ffa6eeb25f32103e69f893287425ab1bd10 Mon Sep 17 00:00:00 2001 From: Naveen Kumar Ponnusamy Date: Wed, 15 Feb 2017 13:58:22 +0530 Subject: [PATCH] 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 --- decoder/ihevcd_parse_slice_header.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/decoder/ihevcd_parse_slice_header.c b/decoder/ihevcd_parse_slice_header.c index 2afa4d2..85c04fc 100644 --- a/decoder/ihevcd_parse_slice_header.c +++ b/decoder/ihevcd_parse_slice_header.c @@ -907,7 +907,11 @@ IHEVCD_ERROR_T ihevcd_parse_slice_header(codec_t *ps_codec, } 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; + } }