Revision 553febf4d8d473b7849eda2735ea77bbcb4f7c80 authored by Filip Roséen on 20 February 2016, 21:41:07 UTC, committed by Jean-Baptiste Kempf on 05 March 2016, 21:15:12 UTC
Manually managing memory comes at a cost of both maintainability (in terms of safety) and performance, as such I have replaced `p_indexes` with a `std::vector` with equivalent functionality. Three helper member-functions have been introduced in order to clean up the usage of the functionality, as well as removal of two now obsolete member-variables. A `typedef` has also been introduced to aid future development. The changes in `mkv.cpp` are due to the fact that it needs access to the indexes present in `matroska_segment_c`; this should be refactored away in the future. Also fixed a bug where you would access index out of bounds if there are no known indexes. Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
1 parent 881299b
File | Mode | Size |
---|---|---|
Makefile.am | -rw-r--r-- | 1.8 KB |
avparser.c | -rw-r--r-- | 6.8 KB |
avparser.h | -rw-r--r-- | 2.0 KB |
copy.c | -rw-r--r-- | 7.6 KB |
dirac.c | -rw-r--r-- | 49.2 KB |
flac.c | -rw-r--r-- | 29.6 KB |
h264.c | -rw-r--r-- | 34.2 KB |
h264_nal.c | -rw-r--r-- | 19.6 KB |
h264_nal.h | -rw-r--r-- | 6.0 KB |
hevc.c | -rw-r--r-- | 14.3 KB |
hevc_nal.c | -rw-r--r-- | 38.1 KB |
hevc_nal.h | -rw-r--r-- | 7.8 KB |
hxxx_common.c | -rw-r--r-- | 3.7 KB |
hxxx_common.h | -rw-r--r-- | 1.4 KB |
hxxx_nal.c | -rw-r--r-- | 6.1 KB |
hxxx_nal.h | -rw-r--r-- | 3.4 KB |
mlp.c | -rw-r--r-- | 16.2 KB |
mpeg4audio.c | -rw-r--r-- | 36.7 KB |
mpeg4video.c | -rw-r--r-- | 17.0 KB |
mpegvideo.c | -rw-r--r-- | 21.2 KB |
packetizer_helper.h | -rw-r--r-- | 8.2 KB |
startcode_helper.h | -rw-r--r-- | 4.4 KB |
vc1.c | -rw-r--r-- | 25.7 KB |
Computing file changes ...