sps_length = 0;
// search for the next start code
- while (!(sps[sps_length] == 0 && sps[sps_length+1] == 0 && sps[sps_length+2] == 1) &&
- sps_length < length - i - 2)
+ while (sps_length < length - i - 2 && !(sps[sps_length] == 0 && sps[sps_length+1] == 0 && sps[sps_length+2] == 1))
{
sps_length++;
}
pps_length = length - i - sps_length - 3;
pps = sps + sps_length + 3;
+
+ // for zero_byte
+ if (sps_length > 0 && sps[sps_length-1] == 0)
+ {
+ sps_length--;
+ }
}
else
{
// This header file is automatically generated at build-time
// *** OFFICIAL RELEASE INFO -- Will not auto update
-#define PV2WAY_ENGINE_SDKINFO_LABEL "1050795"
-#define PV2WAY_ENGINE_SDKINFO_DATE 0x20091028
+#define PV2WAY_ENGINE_SDKINFO_LABEL "1051372"
+#define PV2WAY_ENGINE_SDKINFO_DATE 0x20091029
#endif //PV_2WAY_SDKINFO_H_INCLUDED
// This header file is automatically generated at build-time
// *** OFFICIAL RELEASE INFO -- Will not auto update
-#define PVAUTHOR_ENGINE_SDKINFO_LABEL "1050795"
-#define PVAUTHOR_ENGINE_SDKINFO_DATE 0x20091028
+#define PVAUTHOR_ENGINE_SDKINFO_LABEL "1051372"
+#define PVAUTHOR_ENGINE_SDKINFO_DATE 0x20091029
#endif //PV_AUTHOR_SDKINFO_H_INCLUDED
// This header file is automatically generated at build-time
// *** OFFICIAL RELEASE INFO -- Will not auto update
-#define PVPLAYER_ENGINE_SDKINFO_LABEL "1050795"
-#define PVPLAYER_ENGINE_SDKINFO_DATE 0x20091028
+#define PVPLAYER_ENGINE_SDKINFO_LABEL "1051372"
+#define PVPLAYER_ENGINE_SDKINFO_DATE 0x20091029
#endif //PV_PLAYER_SDKINFO_H_INCLUDED