Propagating Error From impeg2d_pre_pic_dec_proc

In case the function impeg2d_pre_pic_dec_proc returns an error,
the decoder should not try to continue decode.

Bug: 63316832
Test: ran POC under ASAN on patched master
Change-Id: Ib6eed075ac879fb944ca3da70b75d4d723ab93e6
diff --git a/decoder/impeg2d_dec_hdr.c b/decoder/impeg2d_dec_hdr.c
index 2f9db2b..1b6b752 100644
--- a/decoder/impeg2d_dec_hdr.c
+++ b/decoder/impeg2d_dec_hdr.c
@@ -1690,7 +1690,11 @@
                 {
                     return e_error;
                 }
-                impeg2d_pre_pic_dec_proc(ps_dec);
+                e_error = impeg2d_pre_pic_dec_proc(ps_dec);
+                if ((IMPEG2D_ERROR_CODES_T) IVD_ERROR_NONE != e_error)
+                {
+                    return e_error;
+                }
                 impeg2d_dec_pic_data(ps_dec);
                 impeg2d_post_pic_dec_proc(ps_dec);
                 u4_start_code_found = 1;