Skip to content

Commit

Permalink
Merge pull request #2028 from JeromeMartinez/WavPack_Small
Browse files Browse the repository at this point in the history
WavPack: handle of small files
  • Loading branch information
JeromeMartinez committed Apr 26, 2024
2 parents e8aac41 + 0ae1797 commit 7a14e32
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Source/MediaInfo/Audio/File_Wvpk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,10 +455,15 @@ void File_Wvpk::Data_Parse()
}

//Filling
if (!Status[IsAccepted] && Frame_Count>=Frame_Count_Valid)
if (!Status[IsAccepted])
{
File__Tags_Helper::Accept("WavPack");
Data_Parse_Fill();
if (File_Offset+Buffer_Offset+Element_Size==File_Size)
Frame_Count_Valid=Frame_Count;
if (Frame_Count>=Frame_Count_Valid)
{
File__Tags_Helper::Accept("WavPack");
Data_Parse_Fill();
}
}
}

Expand Down

0 comments on commit 7a14e32

Please sign in to comment.