merge in nyc-bugfix-release history after reset to nyc-dev
diff --git a/decoder/ih264d_defs.h b/decoder/ih264d_defs.h
index 0682339..e266206 100644
--- a/decoder/ih264d_defs.h
+++ b/decoder/ih264d_defs.h
@@ -257,7 +257,6 @@
 /** Profile Types*/
 #define BASE_PROFILE_IDC    66
 #define MAIN_PROFILE_IDC    77
-#define EXTENDED_PROFILE_IDC    88
 #define HIGH_PROFILE_IDC   100
 
 
diff --git a/decoder/ih264d_parse_headers.c b/decoder/ih264d_parse_headers.c
index c687fa1..e6cd61f 100644
--- a/decoder/ih264d_parse_headers.c
+++ b/decoder/ih264d_parse_headers.c
@@ -533,14 +533,18 @@
     )
     {
 
-        /* Apart from Baseline, main and high profile,
-         * only extended profile is supported provided
-         * uc_constraint_set0_flag or uc_constraint_set1_flag are set to 1
-         */
-        if((u1_profile_idc != EXTENDED_PROFILE_IDC) ||
-           ((uc_constraint_set1_flag != 1) && (uc_constraint_set0_flag != 1)))
+        if((uc_constraint_set1_flag != 1) && (uc_constraint_set0_flag != 1))
         {
-            return (ERROR_FEATURE_UNAVAIL);
+            if(NULL != ps_dec)
+            {
+                UWORD32 i4_error_code;
+                i4_error_code = ERROR_FEATURE_UNAVAIL;
+                return i4_error_code;
+            }
+            else
+            {
+                return (ERROR_FEATURE_UNAVAIL);
+            }
         }
     }