Commit Graph

3277 Commits

Author SHA1 Message Date
Moritz Bunkus
3361c96032 Added documentation for the "--apend-mode" option. 2009-05-12 10:15:56 +02:00
Moritz Bunkus
8d7774aff5 Fixed segfaults when appending Dirac, VC-1 and DTS track types.
generic_packetizer_c::set_headers() must not be called for appended
files. If it is not called then track_entry is NULL before
generic_packetizer_c::connect() is called. Therefore appended files
must not use track_entry; calls to generic_packetizer_c::set_headers()
hint at wrong usage.
2009-05-11 23:26:33 +02:00
Moritz Bunkus
038ed86534 A small speed improvement for the memory_slice_c class and therefore to all classes using it extensively (e.g. the MPEG program stream parser). 2009-05-11 22:25:52 +02:00
Moritz Bunkus
e6900f2906 No need to set variables twice. 2009-05-11 21:36:57 +02:00
Moritz Bunkus
7708969419 Deconstruct global variables in a predefined way.
Otherwise the mm_file_io_c might be destructed before the m_dev_urandom
object resulting in invalid memory access when checking for fadvised
files in the destructor of mm_file_io_c.
2009-05-11 21:16:19 +02:00
Moritz Bunkus
497500053d Updates to the Japanese and simplified Chinese translations. 2009-05-11 09:49:02 +02:00
Moritz Bunkus
7bd47a45ea Output a friendly error message instead of crashing if a file is locked. 2009-05-10 23:56:43 +02:00
Moritz Bunkus
32174e37e3 Patch the SPU length field if it differs from the packet length.
There are often off-by-one cases in which the SPU length field is larger
than the actual packet. Most playback applications ignore that error
when reading external VobSub files but skip the whole packet if it comes
from a Matroska file.

Fix for bug 383.
2009-05-10 22:39:47 +02:00
Moritz Bunkus
a4f3f87077 Let the user change the chapter charset for MP4 files with the "--chapter-charset" option. 2009-05-10 21:33:51 +02:00
Moritz Bunkus
879b5a18c8 Sort chapters by their timecodes. 2009-05-10 21:11:42 +02:00
Moritz Bunkus
c2944caf29 Seek back to the beginning of the file before parsing headers.
Otherwise the line number count will be off because the reader
tries to parse the version line before handing off to
parse_headers();.
2009-05-10 19:39:58 +02:00
Moritz Bunkus
87ee063eb8 The timecodes are already scaled to nanoseconds; no need to scale them again during output. 2009-05-10 19:31:55 +02:00
Moritz Bunkus
c68f41b435 Intentional change due to 8a072ba704 2009-05-10 18:59:08 +02:00
Moritz Bunkus
851fc9bd38 More sanity checks. 2009-05-10 18:57:47 +02:00
Moritz Bunkus
8a072ba704 Added support for reading chapters from MP4 files.
Fix for bug 385.
2009-05-10 18:37:18 +02:00
Moritz Bunkus
7b69b55d9d Updated the simplified Chinese translation. 2009-05-10 17:31:37 +02:00
Moritz Bunkus
2e39edc702 Update to the Japanese translation. 2009-05-10 14:49:55 +02:00
Moritz Bunkus
5aed5ab00f Updated the tool tip for the FPS input box and the documentation for the --default-duration option.
Fix for bug 387.
2009-05-10 12:40:48 +02:00
Moritz Bunkus
098a812ad2 Compilation fixes. 2009-05-10 00:00:44 +02:00
Moritz Bunkus
08473cfd9b Merge branch 'master' of file:///home/mosu/prog/video/mkvtoolnix 2009-05-09 22:08:26 +02:00
Moritz Bunkus
083c0beb70 Merged the two classes kax_quickparser_c and kax_analyzer_c.
Both do roughly the same anyway.
2009-05-09 22:08:18 +02:00
Moritz Bunkus
b41a22867b Added the Chinese translation to the installer. 2009-05-09 17:54:21 +02:00
Moritz Bunkus
ed5e761cfb Bumped the version number. Added the release message. Set the release codename. 2009-05-09 11:08:44 +02:00
Moritz Bunkus
91af7653f5 Cosmetics. Code simplification. Variable prefixed acccording to their scope. 2009-05-09 11:06:42 +02:00
Moritz Bunkus
1319db1390 Fixed compilation on non-Windows systems without posix_fadvise. 2009-05-08 18:01:10 +02:00
Moritz Bunkus
4ea61ef6f2 Fix two more possible cases of accidentally converting a signed to an unsigned integer. 2009-05-08 17:55:11 +02:00
Moritz Bunkus
ff7a5f910e Fix compiler warnings/misbehaviour. 2009-05-08 17:52:43 +02:00
Moritz Bunkus
b4921cbed0 Cosmetics. Code simplification. Removed "using namespace std;". 2009-05-08 17:00:52 +02:00
Moritz Bunkus
31415fd4ba Updated the Japanese and Chinese (simplified) translations. 2009-05-08 08:10:04 +02:00
Moritz Bunkus
8b5ae95040 Exchanged the order of the family and first name. 2009-05-08 08:06:27 +02:00
Moritz Bunkus
c3837ec5da Cosmetics. Code simplification. Removed "using namespace std;". 2009-05-07 23:08:25 +02:00
Moritz Bunkus
b165c03cfa Updated the Chinese translation. 2009-05-07 19:30:05 +02:00
Moritz Bunkus
a7a753c75a Disable posix_fadvise for files that are opened multiple times at the same time. 2009-05-07 19:11:17 +02:00
Moritz Bunkus
381ffabfb1 make update-po 2009-05-07 10:48:17 +02:00
Moritz Bunkus
96208ca62b Added a translation to Chinese (simplified) by Dean Lee. 2009-05-07 10:46:30 +02:00
Moritz Bunkus
621c3d2323 Added support for AC3 tracks in MP4 files with the FourCC "sac3".
Fix for bug 384.
2009-05-07 09:25:59 +02:00
Moritz Bunkus
bbdd5105b1 Allocated memory with the wrong size resulting in invalid memory access. 2009-05-07 08:59:09 +02:00
Moritz Bunkus
62cca72335 Allow the user to change the FPS of all video tracks. 2009-05-07 08:49:20 +02:00
Moritz Bunkus
d6e2bcff21 Allow a memory size of 0. 2009-05-07 08:47:13 +02:00
Moritz Bunkus
8997d4f60f Cosmetics. 2009-05-07 08:28:31 +02:00
Moritz Bunkus
52f46ed143 Created functions for formatting floating point numbers in a non-scientific way. 2009-05-07 08:18:35 +02:00
Moritz Bunkus
a675be260f Read all MPEG packets from VobSub files
The last packet was not read because off an off-by-one error:
for the last packet the reader was accessing after the end of
the vector resulting in a file position member of 0.

Patch by Todd Schmuland.
2009-05-06 22:48:15 +02:00
Moritz Bunkus
a401fedd29 Fix for compilation on Windows. 2009-05-06 20:05:45 +02:00
Moritz Bunkus
40fc864e02 Moved the set_process_priority function to common.cpp.
Also mkvinfo and mkvextract use it instead of using nice() directly.
2009-05-06 19:56:22 +02:00
Moritz Bunkus
c0d837ad7f Moved a couple of character conversion functions to locale.h/cpp. 2009-05-06 14:54:38 +02:00
Moritz Bunkus
afd1cad35e Compilation fixes for 3f5150b92c. 2009-05-06 14:34:11 +02:00
Moritz Bunkus
8fa8ef88f1 Compilation fixes for 3f5150b92c. 2009-05-06 14:03:00 +02:00
Moritz Bunkus
3f5150b92c Split the files src/common/common.h and src/common/common.cpp into several smaller ones.
Also a lot of cosmetic improvements. I fully expect this commit to break compilation on other systems. This will be fixed later.
2009-05-06 12:33:52 +02:00
Moritz Bunkus
468dec7039 Added "60000/1001" as an option to the "FPS" drop down box. 2009-05-03 22:53:06 +02:00
Moritz Bunkus
6c3ee7e353 Cosmetics. 2009-05-03 19:59:52 +02:00