Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-pimenov committed Feb 18, 2018
1 parent f310a06 commit 3ab03ea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions MediaInfoLib/Source/MediaInfo/File__Analyze.cpp
Expand Up @@ -2218,12 +2218,15 @@ bool File__Analyze::Header_Manage()
}
else
{
//Can not synchronize anymore in this block
if (Element_Level<2)
return false;
//Can not synchronize anymore in this block
Element_Offset=Element[Element_Level-2].Next-(File_Offset+Buffer_Offset);
Header_Fill_Size(Element_Offset);
}
}

if (Element_Level<1)
return false;
if (Element_IsWaitingForMoreData() || ((DataMustAlwaysBeComplete && Element[Element_Level-1].Next>File_Offset+Buffer_Size) || File_GoTo!=(int64u)-1) //Wait or want to have a comple data chunk
#if MEDIAINFO_DEMUX
|| (Config->Demux_EventWasSent)
Expand Down

0 comments on commit 3ab03ea

Please sign in to comment.