/* Copyright (c) MediaArea.net SARL. All Rights Reserved. * * Use of this source code is governed by a BSD-style license that can * be found in the License.html file in the root of the source tree. */ //--------------------------------------------------------------------------- // Pre-compilation #include "MediaInfo/PreComp.h" #ifdef __BORLANDC__ #pragma hdrstop #endif //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #include "MediaInfo/Setup.h" //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #if defined(MEDIAINFO_GXF_YES) //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #include "MediaInfo/Multiple/File_Umf.h" //--------------------------------------------------------------------------- namespace MediaInfoLib { //*************************************************************************** // Constructor/Destructor //*************************************************************************** //--------------------------------------------------------------------------- File_Umf::File_Umf() :File__Analyze() { //In #if MEDIAINFO_SEEK || MEDIAINFO_DEMUX GopSize=(int64u)-1; #endif //MEDIAINFO_SEEK || MEDIAINFO_DEMUX } //*************************************************************************** // Buffer - File header //*************************************************************************** //--------------------------------------------------------------------------- bool File_Umf::FileHeader_Begin() { //Element_Size if (Buffer_Size<2) return false; //Must wait for more data int16u Length=LittleEndian2int16u(Buffer); if (Buffer_Size=Element_Size) break; } for (int32u Pos=0; Pos=Element_Size) break; } while (Element_Offset18) Skip_XX(Length-18, "User data"); else Skip_XX(Element_Size-Element_Offset-2, "User data"); Skip_L1( "NULL byte"); Skip_L1( "Reserved byte"); Element_End0(); } } } //NameSpace #endif //MEDIAINFO_UMF_YES