ffmpeg: remuxer: fix "initialization discards 'const' qualifier from pointer target type" (#80)
* ffmpeg: fix compilation on `bookworm` * workflows: test on `bookworm` Co-authored-by: FacuM <facumo.fm@gmail.com>
This commit is contained in:
parent
8d0c04ccd5
commit
f04e9311ab
4
.github/workflows/build_test.yaml
vendored
4
.github/workflows/build_test.yaml
vendored
@ -10,13 +10,13 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
debian_version: [bullseye]
|
||||
debian_version: [bullseye, bookworm]
|
||||
docker_arch: [amd64, arm32v7, arm64v8]
|
||||
build_type: [generic, raspi]
|
||||
exclude:
|
||||
- docker_arch: amd64
|
||||
build_type: raspi
|
||||
- debian_version: buster
|
||||
- debian_version: bookworm
|
||||
build_type: raspi
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
4
Makefile
4
Makefile
@ -9,6 +9,10 @@ GIT_REVISION ?= $(shell git rev-parse --short HEAD)
|
||||
CFLAGS := -Werror -Wall -g -I$(CURDIR) -D_GNU_SOURCE
|
||||
LDLIBS := -lpthread -lstdc++
|
||||
|
||||
# libdatachannel deprecations on bookworm
|
||||
# error: 'HMAC_Init_ex' is deprecated: Since OpenSSL 3.0
|
||||
CFLAGS += -Wno-error=deprecated-declarations
|
||||
|
||||
ifneq (x,x$(shell which ccache))
|
||||
CCACHE ?= ccache
|
||||
endif
|
||||
|
@ -94,7 +94,12 @@ int ffmpeg_remuxer_open(ffmpeg_remuxer_t *remuxer)
|
||||
if (remuxer->packet)
|
||||
return 0;
|
||||
|
||||
AVInputFormat *input_format = av_find_input_format(remuxer->input_format);
|
||||
#if LIBAVFORMAT_VERSION_MAJOR < 59
|
||||
AVInputFormat *input_format;
|
||||
#else
|
||||
const AVInputFormat *input_format;
|
||||
#endif
|
||||
input_format = av_find_input_format(remuxer->input_format);
|
||||
if (!input_format)
|
||||
return AVERROR(EINVAL);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user