Browse Source

bugfix:修改podspec

wubiner 4 years ago
parent
commit
969a464a80

+ 1 - 1
QGVAPlayer.podspec

@@ -16,7 +16,7 @@ Pod::Spec.new do |spec|
   #
   #
 
 
   spec.name         = "QGVAPlayer"
   spec.name         = "QGVAPlayer"
-  spec.version      = "1.0.13"
+  spec.version      = "1.0.14"
   spec.summary      = "video animation player."
   spec.summary      = "video animation player."
   spec.platform     = :ios, "8.0"
   spec.platform     = :ios, "8.0"
 
 

+ 1 - 1
iOS/QGVAPlayer/QGVAPlayer/Classes/MP4Parser/QGMP4Parser.m

@@ -181,7 +181,7 @@ unsigned long long dataConvertToUInt64(NSData *data) {
     }
     }
     const char *bytes = data.bytes;
     const char *bytes = data.bytes;
     for (int i = 0; i < 8; i++) {
     for (int i = 0; i < 8; i++) {
-        largeSize += bytes[i] << (8 - i - 1) * 8;
+        largeSize += ((bytes[i]&0xff) << (8 - i - 1) * 8);
     }
     }
     return largeSize;
     return largeSize;
 }
 }

+ 3 - 0
iOS/QGVAPlayerDemo/QGVAPlayerDemo/ViewController.m

@@ -105,6 +105,9 @@ void qg_VAP_Logger_handler(VAPLogLevel level, const char* file, int line, const
     //单纯播放的接口
     //单纯播放的接口
     //[mp4View playHWDMp4:resPath];
     //[mp4View playHWDMp4:resPath];
     //指定素材混合模式,重复播放次数,delegate的接口
     //指定素材混合模式,重复播放次数,delegate的接口
+    
+    //注意若素材不含vapc box,则必须用调用如下接口设置enable才可播放
+    //[mp4View enableOldVersion:YES];
     [mp4View playHWDMP4:resPath repeatCount:-1 delegate:self];
     [mp4View playHWDMP4:resPath repeatCount:-1 delegate:self];
 }
 }