Skip to content

Commit

Permalink
Revert to version 6.1 of ffmpeg for Linux since vulkan headers aren't…
Browse files Browse the repository at this point in the history
… new enough in Flatpak and Appimage and fix sockerr on Windows for stoppipe
  • Loading branch information
streetpea committed May 14, 2024
1 parent 183241c commit 45db861
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
7 changes: 5 additions & 2 deletions lib/src/stoppipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,16 @@ CHIAKI_EXPORT ChiakiErrorCode chiaki_stop_pipe_connect(ChiakiStopPipe *stop_pipe
return CHIAKI_ERR_UNKNOWN;

#ifdef _WIN32
DWORD sockerr;
int sockerr;
socklen_t sockerr_sz = sizeof(sockerr);
if(getsockopt(fd, SOL_SOCKET, SO_ERROR, (char*)(&sockerr), &sockerr_sz) < 0)
return CHIAKI_ERR_UNKNOWN;
#else
int sockerr;
#endif
socklen_t sockerr_sz = sizeof(sockerr);
if(getsockopt(fd, SOL_SOCKET, SO_ERROR, &sockerr, &sockerr_sz) < 0)
return CHIAKI_ERR_UNKNOWN;
#endif

#ifdef _WIN32
switch(sockerr)
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-ffmpeg-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ TAG=n7.0

git clone https://git.ffmpeg.org/ffmpeg.git --depth 1 -b $TAG && cd ffmpeg || exit 1
git apply ${SCRIPT_DIR}/flatpak/0001-vulkan-ignore-frames-without-hw-context.patch || exit 1
./configure --disable-all --enable-shared --enable-avformat --enable-avcodec --enable-decoder=h264 --enable-decoder=hevc --enable-hwaccel=h264_vulkan --enable-hwaccel=hevc_vulkan --enable-hwaccel=h264_d3d11va --enable-hwaccel=hevc_d3d11va --prefix=/mingw64 "$@" || exit 1
./configure --disable-all --enable-shared --enable-ffmpeg --enable-avformat --enable-avcodec --enable-decoder=h264 --enable-decoder=hevc --enable-hwaccel=h264_vulkan --enable-hwaccel=hevc_vulkan --enable-hwaccel=h264_d3d11va --enable-hwaccel=hevc_d3d11va --prefix=/mingw64 "$@" || exit 1
make -j4 || exit 1
make install || exit 1
2 changes: 1 addition & 1 deletion scripts/build-ffmpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cd "./$1"
shift
ROOT="`pwd`"

TAG=n7.0
TAG=n6.1

git clone https://git.ffmpeg.org/ffmpeg.git --depth 1 -b $TAG && cd ffmpeg || exit 1
git apply ${SCRIPT_DIR}/flatpak/0001-lavc-vaapi_hevc-Fixup-invalid-references.patch || exit 1
Expand Down
4 changes: 2 additions & 2 deletions scripts/flatpak/chiaki4deck-devel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ modules:
- --enable-hwaccel=hevc_vulkan
sources:
- type: archive
url: https://ffmpeg.org/releases/ffmpeg-7.0.tar.xz
sha256: 4426a94dd2c814945456600c8adfc402bee65ec14a70e8c531ec9a2cd651da7b
url: https://ffmpeg.org/releases/ffmpeg-6.1.tar.xz
sha256: 488c76e57dd9b3bee901f71d5c95eaf1db4a5a31fe46a28654e837144207c270
- type: patch
path: 0001-lavc-vaapi_hevc-Fixup-invalid-references.patch
- type: patch
Expand Down
4 changes: 2 additions & 2 deletions scripts/flatpak/chiaki4deck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ modules:
- --enable-hwaccel=hevc_vulkan
sources:
- type: archive
url: https://ffmpeg.org/releases/ffmpeg-7.0.tar.xz
sha256: 4426a94dd2c814945456600c8adfc402bee65ec14a70e8c531ec9a2cd651da7b
url: https://ffmpeg.org/releases/ffmpeg-6.1.tar.xz
sha256: 488c76e57dd9b3bee901f71d5c95eaf1db4a5a31fe46a28654e837144207c270
- type: patch
path: 0001-lavc-vaapi_hevc-Fixup-invalid-references.patch
- type: patch
Expand Down

0 comments on commit 45db861

Please sign in to comment.