From 5ba4c059535c2660817f85a39c9f54502b09e5d8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 21 Sep 2022 19:12:28 +0200 Subject: Fix build for older version of ffmpeg (linux mint 20.3 for example) --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index c210fe7..67552f4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -624,7 +624,7 @@ static AVFrame* open_audio(AVCodecContext *audio_codec_context) { return frame; } -#if FF_API_BUFFER_SIZE_T +#if LIBAVUTIL_VERSION_MAJOR < 57 static AVBufferRef* dummy_hw_frame_init(int size) { return av_buffer_alloc(size); } -- cgit v1.2.3