Commit Graph

512 Commits (c483756b42209d905d8fd4b4ef77f24ebe304a38)

Author SHA1 Message Date
Daniel Kamil Kozar c483756b42
Split directory.cpp into unix/win32 parts (#491)
directory.cpp was essentially two implementations in one, separated with ifdefs. It's cleaner to just have two separate files, seeing how CMakeLists.txt for libmediation needs to check the platform it's running on and add the appropriate file implementation anyway.

This commit splits this file into two and extracts common code parts to directory_priv.h.
2021-11-12 18:16:15 +01:00
Dan c2de3db345
Qt6 Readiness (#470)
Make it possible to build GUI with Qt 6 while keeping compatibility with 5.6.3.
2021-11-12 18:15:19 +01:00
Daniel Kamil Kozar eabd0f2168
Use -D_FILE_OFFSET_BITS=64 instead of offset-width-specific functions (#488)
It looks like MacOS 11 removes the *64 functions, which have really been useless since 10.5 as off_t has been defined as 64-bit wide since that version.

_FILE_OFFSET_BITS is added and defined to 64 in case somebody wanted to compile tsMuxer as i386 and still have support for >2GB files.
2021-11-08 17:40:45 +01:00
Daniel Kamil Kozar 3abba3f9a0
Handle potential sysctl failures in build_macos_native.sh more gracefully (#487) 2021-11-06 16:37:42 +01:00
Dan Bryant 184bc0e783 label Mac Native GitHub action differently 2021-11-05 17:43:04 +00:00
jcdr428 48a45fecc0
Correct VVC_DESCRIPTOR_TAG
= 57 as per table 2-45 of ISO/IEC 13818-1:2021 made public yesterday.
2021-11-05 14:27:19 +01:00
jcdr428 720269ad9f
Correct STREAM_TYPE_VIDEO_H266
= 0x33 as per ISO/IEC 13818-1:2021 made public on 04-Nov-21.
2021-11-05 14:24:12 +01:00
Daniel Kamil Kozar 0a162cce0d
Use the model-view approach for handling font settings (#485)
This change moves all code related to handling font settings from TsMuxerWindow to its own model. The widget handling the data is now just an ordinary QTableView.

This does away with storing everything as strings inside a QTableWidget, which means that functions using font data to generate metafile or other kinds of output use QFont objects directly.
2021-11-01 17:29:50 +01:00
Daniel Kamil Kozar 1a1b771e14
Remove default font settings from UI XML (#484)
This causes these strings to be set when retranslateUi is called, possibly overwriting the proper ones loaded from the settings.

Fixes #482 .
2021-11-01 16:24:51 +01:00
jcdr428 8d7d35573a
Merge pull request #481 from justdan96/jcdr428-patch-2
[bug] Case when gci_num_reserved_bits > 32
2021-10-19 12:58:10 +01:00
jcdr428 5b8fdee725
Update vvc.cpp 2021-10-19 12:56:33 +01:00
jcdr428 7a227e4120
Merge pull request #480 from justdan96/jcdr428-patch-1
[bug] hdrSize should be uint64_t
2021-10-19 12:26:16 +01:00
jcdr428 007bb548a5
Update dtsStreamReader.cpp 2021-10-19 12:24:44 +01:00
jcdr428 f78f6f3bc3
Merge pull request #479 from AugJujube/master
fix issue 475
2021-10-19 08:59:45 +01:00
AugJujube 488a0cbdbf fix issue 475
fix a heap-buffer-overflow issue
2021-10-19 14:27:18 +08:00
jcdr428 c6a0277be6
Merge pull request #473 from jcdr428/master
[Bug] Correct stream_id

Fixes #460 .
2021-10-12 10:39:57 +01:00
jcdr428 1e34f97db1 [Bug] Correct stream_id
PES stream_id should be 0xE1 for HEVC, and 0xE0 for AVC / MPEG-2.
2021-10-11 21:09:24 +01:00
jcdr428 75e7943bb8
Merge pull request #472 from jcdr428/master
[Bug] Incorrect handling of H264 NALS
2021-10-11 20:36:55 +01:00
jcdr428 2ad378138e [Bug] Incorrect handling of H264 NALS 2021-10-09 18:05:07 +01:00
jcdr428 149fd8b569
Merge pull request #466 from jcdr428/Symlink
Symlink
2021-09-22 21:58:19 +00:00
jcdr428 4b8c36b013
Update textSubtitlesRenderFT.cpp 2021-09-22 22:47:50 +01:00
jcdr428 1d50191c0a Allow symlink font paths 2021-09-22 22:42:23 +01:00
jcdr428 d5f5a4c455
Merge pull request #465 from jcdr428/MacOS10.15
Upgrade to MacOS 10.15
2021-09-22 21:09:35 +00:00
jcdr428 09eff0d97c Upgrade to MacOS 10.15 2021-09-22 22:07:03 +01:00
jcdr428 9de04d349c
Merge pull request #464 from jcdr428/master
Upgrade to c++17
2021-09-22 20:52:48 +00:00
jcdr428 83a6cae62a Upgrade to c++17
Add #define WIN32_LEAN_AND_MEAN to avoid conflict between new c++17 std::byte and windows.h byte type.
2021-09-22 21:33:14 +01:00
jcdr428 be47e56772
Merge pull request #461 from jcdr428/jcdr428-FixMacFonts
Fix Font updates for Mac
2021-09-19 16:13:20 +00:00
jcdr428 c592a8ff4d
Fix Font updates for Mac
See issue #459: 
There are 3 places on macOS where fonts are located:
/System/Library/Fonts contains system fonts. That folder usually remains untouched.
/Library/Fonts contains additional fonts and fonts installed by different apps. User can install fonts to that folder. There is an Arial Unicode.ttf font in that folder.
~/Library/Fonts/ is usually empty by default. User can install fonts to that folder.
2021-09-19 17:05:03 +01:00
jcdr428 8474c6b01d
Correct STREAM_TYPE_VIDEO_H266 to 0x32
As per "ISO/IEC 13818-1:2019/DAmd 2 - Carriage of VVC in MPEG-2 Systems":
In 2.4.4.9, in Table 2-34, Stream type assignments, replace the following line:
0x32-0x7E ITU-T Rec. H.222.0 | ISO/IEC 13818-1 Reserved
with:
0x32 VVC video stream or an VVC temporal video sub-bitstream conforming to one or more profiles defined in Annex A of Rec. ITU-T H.26X | ISO/IEC 23090-3
2021-09-08 22:43:53 +01:00
jcdr428 afc5abd86b
[bug] Add stream_coding_type
Bug introduced with commit 5558731.
Fixes #454 .
2021-09-07 20:46:32 +01:00
jcdr428 62dc38efe5
Add VVC Codec to Readme 2021-09-05 17:25:11 +01:00
jcdr428 3d6e3eec87
Merge pull request #451 from jcdr428/VVC
Add VVC Codec
2021-09-05 01:04:39 +01:00
jcdr428 5558731e9b Add VVC Codec 2021-09-04 21:29:02 +01:00
Dan Bryant f4fe29f56e fix AppImage build for Linux 2021-09-03 23:21:13 +01:00
Dan Bryant 98cad735ae quick attempted fix for GitHub action for Mac failing 2021-09-01 16:42:42 +01:00
Dan 9abab9f4ae
Merge pull request #449 from justdan96/enhancement-reduce-osxcross-deps
Reduce OSXcross Build Dependencies
2021-09-01 14:56:07 +01:00
Dan Bryant 4fb5246742 update README for Mac builds 2021-09-01 14:34:22 +01:00
Dan Bryant e6eea881f1 make changes to the OSXcross build so dependencies are reduced for those builds 2021-09-01 14:22:12 +01:00
jcdr428 2aa293b513
Explicit error that pure E-AC3 is not supported in Blu-Ray
When trying to mux pure E-AC3 in a Blu-ray ISO or folder, tsMuxer aborts without warning in the GUI (the warning is shown only in the console version).
This patch allows the warning to be also shown in the GUI.
2021-06-19 14:24:35 +01:00
jcdr428 a80cd66b86
Fix infinite loop when blockSize = 0 (#442)
A situation can occur where tsMuxer tries to extract data from a block which is not a PG track, and blocksize = 0 results in an infinite loop.

Fixes #440.
2021-06-09 18:54:11 +02:00
jcdr428 8028fb8449
Buffer overflow when SEI payloadSize > bits left (#439)
Fixes #432 .
2021-06-09 18:53:16 +02:00
jcdr428 d82d0d45c6
Buffer overflow in getCurVal (#438)
Fixes #431 
Fixes #434 
Fixes #435
2021-06-09 18:50:52 +02:00
jcdr428 378377e924
[Bug] Incorrect values of VC-1 framerate (#429)
Fixes #426
2021-06-09 18:48:27 +02:00
jcdr428 ea879f3b91
[bug] heap buffer overflow when last byte of SEI = 0xFF (#425)
Fixes #423
Fixes #427
Fixes #430
Fixes #433
2021-06-09 18:45:45 +02:00
jcdr428 d77ed5e8dc
[Bug] Buffer overflow with non-hevc stream (#422)
As per T-REC-H265 standard sub-clause 7.4.2.2., when nal_unit_type == VPS_NUT or SPS_NUT or EOS_NUT or EOB_NUT, nuh_temporal_id shall be equal to 0.

This patch allows early return when this condition is not fulfilled therefore the stream is obviously not hevc.

Fixes #418, #419, #420, #424, #436, #437.
2021-06-09 18:38:50 +02:00
jcdr428 9070a9917f
[bug] Division by 0 (#421)
Early return when mh.group1_samplerate (Sample rate of first substream) is 0, to avoid division by 0 error.

Solves #417 and #428 .
2021-06-09 18:34:39 +02:00
jcdr428 f6ab2a2a89
Limit number of pos or neg pics (#413)
Early abort when num_negative_pics or nb_positive_pics > 64 (max number of ref. frames).

Fixes #411
2021-04-29 11:48:28 +02:00
jcdr428 0a86fc4dc6
Avoid memory overflow when m_bufEnd not set (#412)
Fixes #409
2021-04-29 11:43:28 +02:00
Daniel Kamil Kozar a50c2c5a16
README.md now points to GitHub's nightly releases 2021-02-12 18:22:40 +01:00
Daniel Kamil Kozar 72965ae819
OBS_USER is no longer a secret 2021-02-12 18:15:02 +01:00