Commit Graph

824 Commits (master)

Author SHA1 Message Date
jcdr428 1bdfb56e95 Fix Serbian language code
"scc" code does not exist in ISO 639-2.
2022-05-29 12:52:47 +01:00
jcdr428 374d1990b7 Fix the malay language code
Bluray uses the "msa" ISO 639-2/T lnguage code, not the "may" ISO 639-2/B code.
2022-05-29 10:25:32 +01:00
jcdr428 cbc0ac064c Fix the French language code
Bluray uses the "fra" ISO 639-2/T language code, not the "fre" ISO 639-2/B code.
2022-05-29 10:24:13 +01:00
jcdr428 4b3051f4ec Fix the Dutch/Flemish language code
Bluray uses the "nld" ISO 639-2/T language code, not the "dut" ISO 639-2/B code.
2022-05-29 10:22:36 +01:00
jcdr428 09284b6473 Remove "scr" code
"scr" does not exist in ISO 639-2.
2022-05-29 10:21:14 +01:00
jcdr428 23c8e4dff2 Fox Czech language code
Bluray uses the "ces" ISO 639-2/T language code, not the "cze" ISO 639-2/B code.
2022-05-29 10:19:46 +01:00
jcdr428 8f0014b04e Fix Chinese language code
Bluray uses the "zho" ISO 639-2/T language code, not the "chi" ISO 639-2/B code.
2022-05-29 10:18:07 +01:00
jcdr428 2dd95d4cff Remove duplicate Basque language code 2022-05-29 10:16:51 +01:00
jcdr428 58dd2d93d9 Fix the Armenian language code
Bluray uses the "hye" ISO 639-2/T language code, not the "arm" ISO 639-2/B code.
2022-05-29 10:15:59 +01:00
jcdr428 1c62bb74af Fix the Albanian language code
Bluray uses the "sqi" ISO 639-2/T language code, not the "alb" ISO 639-2/B code.
2022-05-29 10:14:29 +01:00
jcdr428 dea543a8bf Fix Persian language code
Bluray should use the "fas" ISO 639-2/T code, not the "per" ISO 639-2/B code.
2022-05-29 10:11:53 +01:00
jcdr428 5791abe0cc Reduce PTS offset
Initial PTS offset is set to 378000000 (in 90000 Hz) which is 1h10min.
Commercial Blu-ray initial offsets are generally 10-12 sec.
PTS offset is reduced to 900000 = 10 sec.
2022-05-29 10:04:07 +01:00
jcdr428 ae7402a776 Fix German ISO language code
German "ger" is ISO 639-2/B
Blur-ray should be ISO 630-2/T "deu"
2022-05-29 10:01:29 +01:00
jcdr428 146594c4eb Clarify operator precedence 2022-05-28 15:25:09 +01:00
jcdr428 e62e46d290 [bug] correction on commit aac7d2b 2022-05-28 15:18:45 +01:00
jcdr428 748f442ae3 clang format check 2022-05-24 22:48:03 +01:00
jcdr428 ddecfd75f3 Mark derived methods used in destructors as final
Prevents 'warning Call to virtual method 'ISOFile::close' (resp. 'MatroskaDemuxer::readClose' / 'MovDemuxer::readClose') during destruction bypasses virtual dispatch [clang-analyzer-optin.cplusplus.VirtualCall]'.
2022-05-24 22:45:44 +01:00
jcdr428 f0c0ca19e5 Small optimization
Prevents a clang-analyzer-core.UndefinedBinaryOperatorResult warning
2022-05-24 21:30:00 +01:00
jcdr428 aac7d2b26c Prevent <<32 undefined behavior 2022-05-24 21:08:08 +01:00
jcdr428 aa26bf07f4
Regression on commit e85de6
Increase of TMP_BUFFER_SIZE is a priori not necessary anymore with fix/commit eaf0c4.
2022-05-24 14:43:01 +01:00
jcdr428 eaf0c44ef0
[bug] Limit readCnt to DEFAULT_FILE_BLOCK_SIZE
The size of the data read from the stream and copied to the buffer should be limited to DEFAULT_FILE_BLOCK_SIZE to avoid the 'Not enough buffer for parse video stream' error.
2022-05-24 14:38:35 +01:00
Daniel Kamil Kozar 24ae93589c Fixes to German about.html (#597) 2022-05-15 23:04:42 +02:00
Daniel Kamil Kozar 46c06fa6eb Fix German about file appearing in Hebrew language version 2022-05-15 22:58:20 +02:00
Daniel Kamil Kozar 28b1d1eeec
Make language names translatable (#603)
Fixes #591.
2022-05-15 22:53:32 +02:00
Daniel Kamil Kozar 77f9dc3c84
Avoid shifting by 32 bits in BitStreamWriter (#602)
Left-shifting by an amount which is more or equal to the type's width is undefined in both C and C++. This could happen in BitStreamWriter when m_bitWrited was zero, and resulted in inconsistent results between Intel and ARM targets.

On Intel, the amount of bits to shift is explicitly masked to its lower 5 (for 32-bit values) or 6 (for 64-bit values) bits. This is documented in the instruction set reference. Effectively, the amount of bits to be shifted is the actual amount modulo 32 or 64. In this particular case, asking the CPU to shift by 32 bits left the value unchanged.

ARM does not place any requirements on the behaviour of the CPU when the amount to shift is larger than 32/64 - the instruction set reference just says that the register is supposed to be "holding a shift amount from 0 to 31 in its bottom 5 bits. ". However, MSVC documentation suggests that values in registers might appear to "wrap around" when shifting by more than 32 or 64 bits, which is indeed what was observed here.

The fix essentially amounts to emulating Intel behaviour (as it was the original development platform and presumably most assumptions were made with it in mind, even if unknowingly) by not touching the value if the amount of bits to shift is 32.
2022-05-15 11:40:54 +02:00
Daniel Kamil Kozar b2e5dd3528 Fix same off-by-one error in the other AddString() call 2022-05-14 11:22:25 +02:00
Daniel Kamil Kozar 6eac7abcd7
Fix off-by-one error in GraphicsPath::AddString() call (#601)
AddString's documentation clearly says that its second parameter is supposed to
be the number of characters to display. Since the vector returned by toWide() is
always null-terminated and the termination character is included in its size(),
this resulted in AddString() treating the termination character as something it
is supposed to actually draw.

Perhaps some versions of AddString() explicitly stop at the termination
character and don't process any further characters : this is probably why this
issue has gone unnoticed for so long.

Fixes #598
2022-05-14 11:07:01 +02:00
jcdr428 d3c495d1e9 [bug] Fix array index out of bounds
sizeof() returns size of array in bytes, not number of elements
2022-05-10 19:12:06 +01:00
jcdr428 41dfd71aaf Small change to previous commit 2022-05-04 20:43:31 +00:00
jcdr428 4816a65dfc Add warning when muxing DV...
...that double DV layer single tracks disks will not play in a Blu-ray player.

Fixes issue #586.
2022-05-04 20:40:57 +00:00
jcdr428 548eb1d718
Add NetBSD Fonts
Credits go to @Randrianasulu.

Fixes #595.
2022-05-04 19:12:32 +00:00
Dan 327744f69f
Merge pull request #594 from quietvoid/fix_compiling_link
Fix broken link to compiling documentation
2022-05-04 11:33:01 +01:00
jcdr428 e85de681d1 Increase size of TMP_BUFFER_SIZE
With UHD movies, the max frame size can get much bigger.
Increasing the buffer size should avoid errors such as issue #563.
2022-05-03 20:54:40 +00:00
jcdr428 ddd5d978b6 clang format check 2022-05-03 19:06:50 +00:00
jcdr428 0610d0c737 Fix use of arithmetic operator on Boolean type 2022-05-03 19:04:41 +00:00
jcdr428 d8fbf6dc18 clang format check 2022-05-03 19:02:47 +00:00
jcdr428 d8b191e14c Fix declaration of variable already declared in outer scope 2022-05-03 19:00:33 +00:00
jcdr428 d7969f3526 Fix declaration of variable already declared in outer scope 2022-05-03 18:55:16 +00:00
jcdr428 aa1185b867 Fix declaration of variables already declared in outer scope 2022-05-03 18:53:32 +00:00
jcdr428 407acb863a Fix declaration of variables already declared in outer scope 2022-05-03 18:36:17 +00:00
jcdr428 7a9403a79d Fix declaration of variables already declared in outer scope 2022-05-03 18:31:50 +00:00
jcdr428 99ff83e815 Fix declaration of variable already declared in outer scope 2022-05-03 18:11:30 +00:00
jcdr428 59eea9fc93 Fix declaration of variables already declared in outer scope 2022-05-03 18:08:57 +00:00
jcdr428 4939c169e6 fix declaration of variables alreay declared in outer scope 2022-05-03 18:04:28 +00:00
jcdr428 eff0a366f1 [bug] declaration of variable already used in outer scope 2022-05-03 17:59:09 +00:00
jcdr428 d358fa831e clang format check 2022-05-03 17:55:04 +00:00
jcdr428 45cef004e2 [bug] UDF 2.50: Missing Terminating Descriptor
As per ECMA 167 [8.3.1 File Set Descriptor Sequence], there should be a Terminating Descriptor after the File Set Descriptor

Plus renaming "ExtentFile" to "ExtendedFileEntry" to comply with UDF 2.50 / ECMA 167 name.
2022-05-03 17:00:39 +00:00
quietvoid 6d18c8e25c Fix broken link to compiling documentation 2022-05-03 09:46:02 -04:00
jcdr428 7dcca4876e clang format check 2022-05-02 13:35:15 +00:00
jcdr428 13a371e14c clang format check 2022-05-02 13:31:03 +00:00