Handle Unsupported Dimensions in Test App

Exit if the decoder was initialised with dimensions smaller than the stream
dimensions.

Bug: 37452661
Bug: 74078669
Test: ran POC from bug before/after
Change-Id: I43c457b5f47037f1caa73c9f1684e5cc5cffa44e
(cherry picked from commit 9ca98f48f3ff293224d5f95a216e6cac8503de52)
(cherry picked from commit 41295d2439e3ec8dfdec20fd835079b4cddfc5aa)
diff --git a/test/decoder/main.c b/test/decoder/main.c
index e6eb1ef..916081d 100644
--- a/test/decoder/main.c
+++ b/test/decoder/main.c
@@ -2415,9 +2415,13 @@
 
             if(ret != IV_SUCCESS)
             {
+                if (IMPEG2D_UNSUPPORTED_DIMENSIONS == s_video_decode_op.u4_error_code)
+                {
+                    sprintf(ac_error_str, "\nSummary\nUnsupported Dimensions. Reinit decoder with width %d and height %d\n", s_video_decode_op.u4_pic_wd, s_video_decode_op.u4_pic_ht);
+                    codec_exit(ac_error_str);
+                }
                 sprintf(ac_error_str, "\nError in header decode %x",
                         s_video_decode_op.u4_error_code);
-                // codec_exit(ac_error_str);
             }
 
             u4_num_bytes_dec = s_video_decode_op.u4_num_bytes_consumed;