Browse Source

Prevent crash when audio file is empty

master
Thomas Cheyney 4 years ago
parent
commit
343ea27e68
14 changed files with 4 additions and 0 deletions
  1. BIN
      Content/Blueprints/WidgetEditorMenu.uasset
  2. BIN
      Content/Blueprints/WidgetSpawnDistance.uasset
  3. BIN
      Content/Meshes/untitled.uasset
  4. BIN
      Content/Textures/Icons/VisionBlockCat.uasset
  5. BIN
      Content/Textures/Icons/bigcat.uasset
  6. BIN
      Content/Textures/Icons/donateCat.uasset
  7. BIN
      Content/Textures/Icons/fileextensionimage.uasset
  8. BIN
      Content/Textures/Icons/good_mapping_practice.uasset
  9. BIN
      Content/Textures/Icons/pfp.uasset
  10. BIN
      Content/Textures/Icons/visionblock1.uasset
  11. BIN
      Content/Textures/Icons/visionblock2.uasset
  12. BIN
      Content/Textures/Icons/visionblock3.uasset
  13. BIN
      Content/Textures/Icons/visionblockcatfull.uasset
  14. +4
    -0
      Source/MediocreMapAssistant2/BPFileIO.cpp

BIN
Content/Blueprints/WidgetEditorMenu.uasset View File


BIN
Content/Blueprints/WidgetSpawnDistance.uasset View File


BIN
Content/Meshes/untitled.uasset View File


BIN
Content/Textures/Icons/VisionBlockCat.uasset View File


BIN
Content/Textures/Icons/bigcat.uasset View File


BIN
Content/Textures/Icons/donateCat.uasset View File


BIN
Content/Textures/Icons/fileextensionimage.uasset View File


BIN
Content/Textures/Icons/good_mapping_practice.uasset View File


BIN
Content/Textures/Icons/pfp.uasset View File


BIN
Content/Textures/Icons/visionblock1.uasset View File


BIN
Content/Textures/Icons/visionblock2.uasset View File


BIN
Content/Textures/Icons/visionblock3.uasset View File


BIN
Content/Textures/Icons/visionblockcatfull.uasset View File


+ 4
- 0
Source/MediocreMapAssistant2/BPFileIO.cpp View File

@ -178,6 +178,10 @@ FString UBPFileIO::CheckAudioFormatMatches(const FString & TestPath)
return unknownProblem; return unknownProblem;
} }
if (FileData.Num() < 1024) {
return unknownProblem;
}
for (int i = 0; i < 1024; i++) { for (int i = 0; i < 1024; i++) {
if ((FileData[i] << 8 | (FileData[i+1] & 0xF0)) == 0xFFF0) { if ((FileData[i] << 8 | (FileData[i+1] & 0xF0)) == 0xFFF0) {
if (CheckFrameInfo(FileData, i, 0) != -1) { if (CheckFrameInfo(FileData, i, 0) != -1) {


Loading…
Cancel
Save