Fix build for older version of ffmpeg (linux mint 20.3 for example)
This commit is contained in:
parent
f8237ca5ae
commit
5ba4c05953
@ -624,7 +624,7 @@ static AVFrame* open_audio(AVCodecContext *audio_codec_context) {
|
|||||||
return frame;
|
return frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if FF_API_BUFFER_SIZE_T
|
#if LIBAVUTIL_VERSION_MAJOR < 57
|
||||||
static AVBufferRef* dummy_hw_frame_init(int size) {
|
static AVBufferRef* dummy_hw_frame_init(int size) {
|
||||||
return av_buffer_alloc(size);
|
return av_buffer_alloc(size);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user