Skip to content

Commit

Permalink
FFMPEG - Github Actions - Remove deprecated function for FFMPEG 7 and…
Browse files Browse the repository at this point in the history
… further attempt to fix linux builds
  • Loading branch information
MadDeCoDeR committed Jan 8, 2025
1 parent 8294372 commit 179c098
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cmake_linux_x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- name: Download Depedencies
id: step4
run: sudo apt-get install -y build-essential autoconf cmake libglu1-mesa-dev freeglut3-dev mesa-common-dev libxmu-dev libxi-dev libgl-dev libx11-dev libxft-dev libxext-dev nasm libwayland-dev libxkbcommon-dev libegl1-mesa-dev libdecor-0-dev libxrandr-dev libxxf86vm-dev libx11-xcb-dev libxcb-dri2-0-dev libxcb-glx0-dev libxcb-icccm4-dev libxcb-keysyms1-dev libxcb-randr0-dev python3-jinja2
run: sudo apt-get install -y build-essential autoconf libtool cmake libglu1-mesa-dev freeglut3-dev mesa-common-dev libxmu-dev libxi-dev libgl-dev libx11-dev libxft-dev libxext-dev nasm libwayland-dev libxkbcommon-dev libegl1-mesa-dev libdecor-0-dev libxrandr-dev libxxf86vm-dev libx11-xcb-dev libxcb-dri2-0-dev libxcb-glx0-dev libxcb-icccm4-dev libxcb-keysyms1-dev libxcb-randr0-dev python3-jinja2

- name: Cache linux vcpkg
id: step5
Expand Down
2 changes: 0 additions & 2 deletions neo/renderer/Cinematic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,6 @@ void idCinematicLocal::Close()
if (audio_stream_index >= 0) {
if (dec_ctx2)
{
avcodec_close(dec_ctx2);
avcodec_free_context(&dec_ctx2);
}

Expand All @@ -1019,7 +1018,6 @@ void idCinematicLocal::Close()

if( dec_ctx )
{
avcodec_close( dec_ctx );
avcodec_free_context(&dec_ctx);
}

Expand Down
3 changes: 1 addition & 2 deletions neo/sound/AVD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ bool DecodeXAudio(byte** audio,int* len, idWaveFile::waveFmt_t* format,bool ext)
swr_free(&swr_ctx);
}

avcodec_close(dec_ctx);
avcodec_free_context(&dec_ctx);

av_free(fmt_ctx->pb);
avformat_close_input(&fmt_ctx);
Expand Down Expand Up @@ -445,7 +445,6 @@ bool DecodeALAudio(byte** audio, int* len, int *rate, ALenum *sample) {
swr_free(&swr_ctx);
}

avcodec_close(dec_ctx);
avcodec_free_context(&dec_ctx);

avformat_close_input(&fmt_ctx);
Expand Down

0 comments on commit 179c098

Please sign in to comment.