build: imagor 1.5.9, libvips 8.17.0, vipsgen 1.1.1 (#98)

* build: imagor 1.5.9, libvips 8.17.0, vipsgen 1.1.1

* build: imagor 1.5.9, libvips 8.17.0, vipsgen 1.1.1

* build tweak

* test: reset golden

* test: update golden files

* fix compiler warnings
This commit is contained in:
Adrian Shum 2025-06-11 23:01:14 +08:00 committed by GitHub
parent dc3d0d2061
commit a2eabf0b6e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 78 additions and 75 deletions

View file

@ -122,7 +122,7 @@ int find_streams(AVFormatContext *fmt_ctx, AVStream **video_stream, int *orienta
return video_audio;
}
static int open_codec(AVCodecContext *codec_ctx, AVCodec *codec) {
static int open_codec(AVCodecContext *codec_ctx, const AVCodec *codec) {
int err = pthread_mutex_lock(&mutex);
if (err < 0) {
return err;
@ -136,7 +136,7 @@ static int open_codec(AVCodecContext *codec_ctx, AVCodec *codec) {
}
int create_codec_context(AVStream *video_stream, AVCodecContext **dec_ctx) {
AVCodec *dec = NULL;
const AVCodec *dec = NULL;
AVCodecParameters *par = video_stream->codecpar;
if (par->codec_id == AV_CODEC_ID_VP8) {
dec = avcodec_find_decoder_by_name("libvpx");
@ -410,4 +410,4 @@ int find_best_frame_index(ThumbContext *thumb_ctx) {
AVFrame *select_frame(ThumbContext *thumb_ctx, int n) {
return thumb_ctx->frames[n].frame;
}
}