Fix build for older version of ffmpeg (linux mint 20.3 for example)

This commit is contained in:
dec05eba 2022-09-21 19:12:28 +02:00
parent f8237ca5ae
commit 5ba4c05953

View File

@ -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);
}