Revision 6487b499943b3a014abf4239dac0a0119793fcb3 authored by Filip Roséen on 09 March 2016, 11:50:02 UTC, committed by Jean-Baptiste Kempf on 09 March 2016, 11:57:59 UTC
The two overloads of EbmlParser::reconstruct has been added due to the
fact that there are _a lot_ of places in the code following the below:

    delete ep;
    ep = new EbmlParser (a, b, c, b);

The above will, unless the compiler feels cocky and optimizes it to what
is included in this patch. First free the memory used, and then allocate
new memory for a new EbmlParser.

Instead of doing what is effectively a reallocation, this patch
introduces EbmlParser::reconstruct which will reconstruct the object
in-place (without actually having to reallocate the underlying storage).

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
1 parent 1b41c8e
History
File Mode Size
autotools
bin
compat
contrib
doc
extras
include
lib
m4
modules
po
share
src
test
.gitattributes -rw-r--r-- 73 bytes
.gitignore -rw-r--r-- 452 bytes
.mailmap -rw-r--r-- 7.0 KB
AUTHORS -rw-r--r-- 15.3 KB
COPYING -rw-r--r-- 17.7 KB
COPYING.LIB -rw-r--r-- 25.9 KB
INSTALL -rw-r--r-- 1.5 KB
Makefile.am -rw-r--r-- 67.4 KB
NEWS -rw-r--r-- 161.7 KB
README -rw-r--r-- 2.7 KB
THANKS -rw-r--r-- 5.5 KB
bootstrap -rwxr-xr-x 1.8 KB
configure.ac -rw-r--r-- 126.3 KB
make-alias -rwxr-xr-x 299 bytes

README

back to top