Commit Graph

42 Commits

Author SHA1 Message Date
Moritz Bunkus
7d32fdf223
AVI reader, avilib: support for aspect ratio in video properties header
Implements #2993.
2021-01-10 14:51:24 +01:00
Moritz Bunkus
345efa695f
remove Rakefiles from sub-directories 2020-10-28 18:16:21 +01:00
Moritz Bunkus
01addee9c0
AVI reader: report DV type 1 AVIs as unsupported file types
avilib doesn't support DV type 1 AVIs at all. It used to print an
error message to standard error; additionally it didn't propagate the
error back to the caller resulting in invalid memory accesses and
subsequent crashes.

Fixes #2491.
2019-02-05 20:03:16 +01:00
Moritz Bunkus
8bcc286dfc
refactoring: no 'using namespace …' in header files
It is dangerous insofar as it pollutes an immense number of source
files. For example, utf8cpp's stuff uses relative namespace
names (e.g. `utf8::some_type`). If `using namespace libebml` is in
effect, then this clashes with `libebml::utf8` which is a typedef for
`unsigned char`, causing compiler errors.
2018-06-15 17:45:22 +02:00
Moritz Bunkus
ce07f3557c
avilib: avoid warnings about potentially too small buffers 2018-06-08 11:41:20 +02:00
Moritz Bunkus
dd41abf629 avilib: 0-initialize all allocated memory
Required for properly freeing it later.
2018-04-17 17:54:35 +02:00
Moritz Bunkus
cf225ece06 avilib: free memory allocated for text tracks 2018-04-17 17:54:14 +02:00
Moritz Bunkus
045fb9df48 avilib: free malloc'ed memory for super indexes 2018-04-16 21:33:06 +02:00
Moritz Bunkus
17aa7d5af6 avilib: allow 1024 index chunks = 1024 GB files 2016-12-15 13:40:03 +01:00
KonaBlend
cee1debeaf add explicit pch support
- convert gcc to use -include
- add clang support for -include
- new target namespace: pch (invoke rake -T or pch:overview for details)
- move pch logic into rake.d/pch.rb
- convert a few troublesome source files from ISO-8859-1 -> UTF-8
- add persistent config: config.pch.json
- add TTY support for running commands with filters (keeps pretty
  color diagnostics even when filtering compiler stdout/stderr)
- for fun try:

        drake "pch[pretty]"
        drake -j4
        drake pch:status
2016-03-26 03:52:21 -04:00
Moritz Bunkus
1cad235a98 avilib: fix stream header structure to be consistent with official specs 2015-08-18 20:48:39 +02:00
Moritz Bunkus
91d2470c96 remove old CoreC project file 2015-03-28 15:42:35 +01:00
Mats Peterson
45bc332bad mkvmerge, mkvextract: don't store extra data size in bi_size field 2015-03-24 11:56:01 +01:00
Mats Peterson
3ca50d5946 avilib: write 00dc as index chunk IDs 2015-03-02 12:05:04 +01:00
Moritz Bunkus
461e3ac82b avilib: only require track ID instead of full tag in idx1 2015-02-27 21:58:31 +01:00
Moritz Bunkus
2c54a35ca6 avilib: only put 0x10 into key frame index field
The dwFlags field in idx1 chunks can have other bits set, too. However,
the code in AVI_read_frame() needs it to be equal to 0x10 (which is
AVIIF_KEYFRAME from the aviriff.h header).
2015-02-25 22:41:25 +01:00
Mats Peterson
e7d8415656 avilib: read all of 'strf' even if biSize does not include it
Fixes #1129.
2015-02-25 21:14:33 +01:00
Mats Peterson
d33adf5ee0 avilib: fix ckSize value in strf chunks
Fixes #1128.
2015-02-25 21:01:08 +01:00
Mats Peterson
7702929f56 mkvextract: fix bits/pixel for non-24bit video codecs in AVIs
Fixes #1123.
2015-02-23 21:35:05 +01:00
Moritz Bunkus
d17e29af00 build system: use PACKAGE_NAME/_VERSION instead of self-defined variables 2015-02-12 14:35:48 +01:00
Moritz Bunkus
aa6a3faa05 avilib: use integer size matching the format specifier 2013-10-17 18:09:51 +02:00
Moritz Bunkus
065d891b36 avilib: add function for retrieving the total number of audio chunks 2013-03-31 14:37:07 +02:00
Moritz Bunkus
8e90651697 Make Rakefile's comments compatible with Ruby 1.9.3's changes to "-c" 2012-04-25 23:47:51 +02:00
Moritz Bunkus
dd7c254277 Initialize AVI header fields before writing
Fix for #727.
2012-03-14 12:53:13 +01:00
Moritz Bunkus
1643e752bf Avoid compilation warnings on mingw 2012-03-04 17:30:52 +01:00
Moritz Bunkus
04fd1dd07d Remove unused file avidump.c 2012-03-04 17:24:03 +01:00
Moritz Bunkus
9df51e5dd9 Compile with "-Wextra" and fix all warnings from that 2011-11-19 22:32:46 +01:00
Moritz Bunkus
529cc8db20 Avoid warning about const cast 2011-11-12 13:19:22 +01:00
Moritz Bunkus
b0aaad24e2 Refactoring: move input file creation into generic_reader_c 2011-11-11 23:11:16 +01:00
Moritz Bunkus
f90734d886 Merge all .gitignore files into one 2011-09-17 00:23:00 +02:00
Moritz Bunkus
2e99e16b95 Removed set but unused variables 2011-07-11 22:09:07 +02:00
Moritz Bunkus
b044d2da28 Avoid never ending recursive calls due to wrong #defines
gcc 4.4.x mingw contains a strncasecmp() implementation that already
calls _strnicmp(). Also common/os.h already defines
strncasecmp. Defining it a second time leads to a never ending
recursive call.

Fix for bug 642.
2011-07-11 15:52:47 +02:00
Moritz Bunkus
4db0e3c2d9 Support for AVIs/WAVs using a WAVEFORMATEXTENSIBLE structure (format tag == 0xfffe)
Fix for bug 614.
2011-04-15 11:29:01 +02:00
Moritz Bunkus
53dce17edf Removed most of the old build system 2010-08-01 11:12:44 +02:00
Moritz Bunkus
ac8c0b0a65 Added Rakefiles to nearly every subdirectory 2010-08-01 11:12:44 +02:00
Moritz Bunkus
83a08c7353 Fix a lot of warnings about comparing signed/unsigned integers 2010-06-06 23:26:10 +02:00
Moritz Bunkus
b253f1d9ec Include a proxy header file for common/common.h
gcc < 4.4 has a bug that is triggered by included a header with a
precompiled version more than once. Including a proxy header file that
wraps the actual precompiled one inside a #ifdef guard is fine, though.
2010-03-23 20:26:52 +01:00
Steve Lhomme
10338df395 the common/mm_io.h include implies common.h 2010-03-15 21:54:50 +01:00
Steve Lhomme
079d2ae3ce clean the use of avilib.h 2010-03-13 19:04:03 +01:00
Steve Lhomme
099fa41bc7 avoid some macro collisions with MSVC 2010-03-12 20:39:51 +01:00
Steve Lhomme
58541a33a9 Preliminary support for coremake 2010-03-12 20:38:38 +01:00
Moritz Bunkus
bd86697a61 Moved the directories 'librmff' and 'avilib-0.6.10' to a common subdirectory 'lib'. 2009-08-18 11:29:48 +02:00