@@ -16,7 +16,7 @@ Pod::Spec.new do |spec|
#
spec.name = "QGVAPlayer"
- spec.version = "1.0.18"
+ spec.version = "1.0.19"
spec.summary = "video animation player."
spec.platform = :ios, "8.0"
@@ -1,3 +1,9 @@
+## iOS 1.0.19
+
+**bugfix**
+- 修复mp4解析length为0异常。
## iOS 1.0.18
**bugfix**
@@ -143,6 +143,10 @@
}
bytes = data.bytes;
*length = [self readValue:bytes length:kQGBoxLargeSizeLengthInBytes];
+ if (*length == 0) {
+ VAP_Error(kQGVAPModuleCommon, @"read box length is 0");
+ return NO;
+ }
return YES;
@@ -182,6 +186,7 @@
for (int i = 0; i < length; i++) {
value += (bytes[i]&0xff)<<((length-i-1)*8);
+ VAP_Debug(kQGVAPModuleCommon, @"readValue length:%lld value:%lld", length, value);
return value;