Skip to content

Commit

Permalink
Merge pull request #961 from g-maxime/ci2
Browse files Browse the repository at this point in the history
Update CI
  • Loading branch information
JeromeMartinez authored Jan 8, 2025
2 parents 58176e3 + 2084d28 commit 7d8d11f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/dvrescue-gui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
compiler: ['clang-9']
include:
- compiler: clang-9
packages: llvm@13
packages: llvm@15
env: { 'CC': 'clang', 'CXX': 'clang++' }

runs-on: macos-latest
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
compiler: ['clang-9']
include:
- compiler: clang-9
packages: llvm@13
packages: llvm@15
env: { 'CC': 'clang-9', 'CXX': 'clang++-9', 'HOMEBREW_NO_INSTALL_CLEANUP': '1', 'HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK': '1' }
- qt_version: "6.5.*"
qt_modules: "qtmultimedia"
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
compiler: ['clang-9']
include:
- compiler: clang-9
packages: llvm@13
packages: llvm@15
env: { 'CC': 'clang', 'CXX': 'clang++' }

runs-on: macos-latest
Expand Down Expand Up @@ -218,7 +218,7 @@ jobs:
compiler: ['clang-9']
include:
- compiler: clang-9
packages: llvm@13
packages: llvm@15
env: { 'CC': 'clang-9', 'CXX': 'clang++-9', 'HOMEBREW_NO_INSTALL_CLEANUP': '1', 'HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK': '1' }
- qt_version: "6.5.*"
qt_modules: "qtmultimedia"
Expand Down Expand Up @@ -327,10 +327,10 @@ jobs:
-c protocol.version=2 \
submodule update --init --force --recursive --depth=1
- name: Install Python 3.7 version
- name: Install Python 3.10 version
uses: actions/setup-python@v1
with:
python-version: '3.7'
python-version: '3.10'
architecture: 'x64'

- name: Install compiler and FFmpeg dependencies
Expand Down Expand Up @@ -411,10 +411,10 @@ jobs:
-c protocol.version=2 \
submodule update --init --force --recursive --depth=1
- name: Install Python 3.7 version
- name: Install Python 3.10 version
uses: actions/setup-python@v1
with:
python-version: '3.7'
python-version: '3.10'
architecture: 'x64'

- name: Install compiler and FFmpeg dependencies
Expand Down
9 changes: 6 additions & 3 deletions Source/ThirdParty/ccdecoder/ccdecoder_subrip.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@ void to_timestamp(double Value_Double, wchar_t Result[20])

/* Hours */
Hours=value/(60*60*1000);
if (Hours>=1000)
return; /* Not supported */
if (Hours>=1000) /* Not supported */
{
memcpy(Result, L"??:??:??.???", 13*sizeof(wchar_t));
return;
}
if (Hours>=100)
{
Result[pos]=L'0'+(wchar_t)Hours/100;
Expand Down Expand Up @@ -160,7 +163,7 @@ wchar_t* ccdecoder_subrip_parse(ccdecoder_subrip_handle* handle, ccdecoder_capti
to_timestamp(priv->pts, pts_In);
to_timestamp(pts, pts_Out);
swprintf(ToReturn_Current, ToReturn_size, L"%i\n", (int)priv->Number); ToReturn_Current+=wcslen(ToReturn_Current);
swprintf(ToReturn_Current, ToReturn_size, L"%ls --> %ls\n", pts_In, pts_Out); ToReturn_Current+=wcslen(ToReturn_Current);
swprintf(ToReturn_Current, ToReturn_size-(ToReturn_Current-ToReturn), L"%ls --> %ls\n", pts_In, pts_Out); ToReturn_Current+=wcslen(ToReturn_Current);
for (Output_Y=0; priv->Characters[Output_Y][0].value; Output_Y++)
{
uint8_t attributes=ccdecoder_noattribute;
Expand Down

0 comments on commit 7d8d11f

Please sign in to comment.