updated vbp mpeg4 parser to fix short video header start code emulation error

Change-Id: I3a95f9eb51573f607fb6ab2c6bc1def5386e003e

Signed-off-by: Yanlong Fang <yanlong.fang@intel.com>
diff --git a/mix_vbp/viddec_fw/fw/parser/vbp_mp42_parser.c b/mix_vbp/viddec_fw/fw/parser/vbp_mp42_parser.c
index 1acfd9b..5a4e358 100644
--- a/mix_vbp/viddec_fw/fw/parser/vbp_mp42_parser.c
+++ b/mix_vbp/viddec_fw/fw/parser/vbp_mp42_parser.c
@@ -45,7 +45,8 @@
     uint32 length,
     uint32 *sc_end_pos, 
     uint8 *is_normal_sc, 
-    uint8* resync_marker);
+    uint8* resync_marker,
+    const bool svh_search);
 
 void vbp_on_vop_mp42(vbp_context *pcontext, int list_index);
 void vbp_on_vop_svh_mp42(vbp_context *pcontext, int list_index);
@@ -249,7 +250,7 @@
 	while (1) 
 	{
 		found_sc = vbp_get_sc_pos_mp42(buf + bytes_parsed, size- bytes_parsed, 
-		        &sc_end_pos, &is_normal_sc, &resync_marker);
+		        &sc_end_pos, &is_normal_sc, &resync_marker, short_video_header);
 
 		if (found_sc)
 		{
@@ -628,7 +629,8 @@
 	uint32 length,
 	uint32 *sc_end_pos,
 	uint8 *is_normal_sc,
-	uint8 *resync_marker) 
+	uint8 *resync_marker,
+        const bool svh_search)
 {
 	uint8 *ptr = buf;
 	uint32 size;
@@ -709,8 +711,10 @@
 				if (phase == 2) 
 				{
 					normal_sc = (*ptr == THIRD_STARTCODE_BYTE);
-					short_sc = (SHORT_THIRD_STARTCODE_BYTE == (*ptr & 0xFC));
-
+					if (svh_search)
+                                        {
+                                            short_sc = (SHORT_THIRD_STARTCODE_BYTE == (*ptr & 0xFC));
+                                        }
 					*is_normal_sc = normal_sc;
 
 					// at least 16-bit 0, may be GOB start code or