mirror of
https://github.com/WonderfulToolchain/psxavenc.git
synced 2025-12-17 03:20:26 +00:00
update CI to FFmpeg 8.0.1, preserve avcodec_close() for older FFmpeg versions
This commit is contained in:
3
.github/scripts/build.sh
vendored
3
.github/scripts/build.sh
vendored
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ROOT_DIR="$(pwd)"
|
ROOT_DIR="$(pwd)"
|
||||||
FFMPEG_VERSION="7.1.1"
|
FFMPEG_VERSION="8.0.1"
|
||||||
NUM_JOBS="4"
|
NUM_JOBS="4"
|
||||||
|
|
||||||
if [ $# -eq 1 ]; then
|
if [ $# -eq 1 ]; then
|
||||||
@@ -44,7 +44,6 @@ cd ffmpeg-build
|
|||||||
--disable-programs \
|
--disable-programs \
|
||||||
--disable-doc \
|
--disable-doc \
|
||||||
--disable-avdevice \
|
--disable-avdevice \
|
||||||
--disable-postproc \
|
|
||||||
--disable-avfilter \
|
--disable-avfilter \
|
||||||
--disable-network \
|
--disable-network \
|
||||||
--disable-encoders \
|
--disable-encoders \
|
||||||
|
|||||||
@@ -447,6 +447,10 @@ void close_av_data(decoder_t *decoder) {
|
|||||||
|
|
||||||
av_frame_free(&(av->frame));
|
av_frame_free(&(av->frame));
|
||||||
swr_free(&(av->resampler));
|
swr_free(&(av->resampler));
|
||||||
|
#if LIBAVCODEC_VERSION_MAJOR < 61
|
||||||
|
// Deprecated, kept for compatibility with older FFmpeg versions.
|
||||||
|
avcodec_close(av->audio_codec_context);
|
||||||
|
#endif
|
||||||
avcodec_free_context(&(av->audio_codec_context));
|
avcodec_free_context(&(av->audio_codec_context));
|
||||||
avformat_free_context(av->format);
|
avformat_free_context(av->format);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user