Projects
Multimedia
bento4
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 11
View file
bento4.changes
Changed
@@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Mon May 28 07:05:14 UTC 2018 - aloisio@gmx.com + +- Update to version 1.5.1-624 + +------------------------------------------------------------------- Sun Apr 22 05:20:51 UTC 2018 - aloisio@gmx.com - Update to 1.5.1-623
View file
bento4.spec
Changed
@@ -16,10 +16,10 @@ # -%define _over 1.5.1-623 -%define _libver 1_5_1r623 +%define _over 1.5.1-624 +%define _libver 1_5_1r624 Name: bento4 -Version: 1.5.1r623 +Version: 1.5.1r624 Release: 0 Summary: C++ toolkit for all your MP4 and MPEG DASH media format needs License: GPL-2.0 @@ -31,7 +31,6 @@ Patch1: bento4-otherarchs.patch BuildRequires: cmake >= 3.0 BuildRequires: gcc-c++ -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Bento4 is a C++ class library and tools designed to read and write
View file
bento4-1.5.1r623.tar.gz/Source/C++/Apps/Mp4Fragment/Mp4Fragment.cpp -> bento4-1.5.1r624.tar.gz/Source/C++/Apps/Mp4Fragment/Mp4Fragment.cpp
Changed
@@ -291,7 +291,9 @@ +---------------------------------------------------------------------*/ class IndexedSegmentInfo { public: - AP4_List<FragmentInfo> m_Fragments; + IndexedSegmentInfo() : m_Size(0), m_Duration(0) {} + AP4_UI32 m_Size; + AP4_UI32 m_Duration; }; /*---------------------------------------------------------------------- @@ -637,17 +639,6 @@ FragmentInfo* fragment = new FragmentInfo(cursor->m_Samples, cursor->m_Tfra, cursor->m_Timestamp, moof); fragments.Add(fragment); - // keep track of fragments that will be part of the index - if (cursor == anchor_cursor) { - // start a new segment - current_indexed_segment = new IndexedSegmentInfo(); - indexed_segments.Add(current_indexed_segment); - } else { - if (current_indexed_segment) { - current_indexed_segment->m_Fragments.Add(fragment); - } - } - // add samples to the fragment unsigned int sample_count = 0; AP4_Array<AP4_TrunAtom::Entry> trun_entries; @@ -729,6 +720,17 @@ trun->SetEntries(trun_entries); trun->SetDataOffset((AP4_UI32)moof->GetSize()+AP4_ATOM_HEADER_SIZE); + // keep track of fragments that will be part of the index + if (cursor == anchor_cursor) { + // start a new segment + current_indexed_segment = new IndexedSegmentInfo(); + indexed_segments.Add(current_indexed_segment); + current_indexed_segment->m_Duration = fragment->m_Duration; + } + if (current_indexed_segment) { + current_indexed_segment->m_Size += (AP4_UI32)(fragment->m_Moof->GetSize()+fragment->m_MdatSize); + } + // advance the cursor's fragment index ++cursor->m_FragmentIndex; } @@ -829,20 +831,9 @@ item = item->GetNext()) { IndexedSegmentInfo* segment = item->GetData(); - // compute the total size and duration of the segment - AP4_UI32 segment_size = 0; - AP4_UI32 segment_duration = 0; - for (AP4_List<FragmentInfo>::Item* item = segment->m_Fragments.FirstItem(); - item; - item = item->GetNext()) { - FragmentInfo* fragment = item->GetData(); - segment_size += (AP4_UI32)(fragment->m_Moof->GetSize()+fragment->m_MdatSize); - segment_duration += fragment->m_Duration; - } - // update the sidx entry - reference.m_ReferencedSize = segment_size; - reference.m_SubsegmentDuration = segment_duration; + reference.m_ReferencedSize = segment->m_Size; + reference.m_SubsegmentDuration = segment->m_Duration; reference.m_StartsWithSap = true; sidx->SetReference(segment_index++, reference); }
View file
bento4-1.5.1r623.tar.gz/Source/Python/utils/mp4-dash.py -> bento4-1.5.1r624.tar.gz/Source/Python/utils/mp4-dash.py
Changed
@@ -28,7 +28,7 @@ # setup main options VERSION = "1.8.0" -SDK_REVISION = '623' +SDK_REVISION = '624' SCRIPT_PATH = path.abspath(path.dirname(__file__)) sys.path += [SCRIPT_PATH]
View file
bento4-1.5.1r623.tar.gz/Source/Python/utils/mp4-hls.py -> bento4-1.5.1r624.tar.gz/Source/Python/utils/mp4-hls.py
Changed
@@ -27,7 +27,7 @@ # setup main options VERSION = "1.1.0" -SDK_REVISION = '623' +SDK_REVISION = '624' SCRIPT_PATH = path.abspath(path.dirname(__file__)) sys.path += [SCRIPT_PATH]
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.