Commit ce2ae13
committed
isobmff: make skipping mdat copy the default
Tested:
default case:
```
$ valgrind --tool=massif --detailed-freq=1 ./tools/isobmff in.mp4
$ grep mem_heap_B massif.out.default | awk -F= '{if($2 > max) max=$2} END{print max}'
691167
```
donotskipmdat:
Added the following patch
```
diff --git a/tools/main.cpp b/tools/main.cpp
index def1861..5552cb7 100644
--- a/tools/main.cpp
+++ b/tools/main.cpp
@@ -223,6 +223,7 @@ int main( int argc, char *const * argv )
try
{
+ parser.AddOption( ISOBMFF::Parser::Options::DoNotSkipMDATData );
parser.Parse( path );
}
catch( const std::runtime_error & e )
```
And then:
```
$ valgrind --tool=massif --detailed-freq=1 ./tools/isobmff in.mp4
$ grep mem_heap_B massif.out.donotskipmdat | awk -F= '{if($2 > max) max=$2} END{print max}'
682524151
```1 parent 532b69d commit ce2ae13
3 files changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
227 | 226 | | |
228 | 227 | | |
229 | 228 | | |
| |||
0 commit comments