Fix build on older ffmpeg (17+ months old), see ffmpeg commit ef6a9e5e311f09fa8032974fa4d0c1e166a959bb
This commit is contained in:
parent
f810161203
commit
f8237ca5ae
@ -624,9 +624,15 @@ static AVFrame* open_audio(AVCodecContext *audio_codec_context) {
|
|||||||
return frame;
|
return frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if FF_API_BUFFER_SIZE_T
|
||||||
|
static AVBufferRef* dummy_hw_frame_init(int size) {
|
||||||
|
return av_buffer_alloc(size);
|
||||||
|
}
|
||||||
|
#else
|
||||||
static AVBufferRef* dummy_hw_frame_init(size_t size) {
|
static AVBufferRef* dummy_hw_frame_init(size_t size) {
|
||||||
return av_buffer_alloc(size);
|
return av_buffer_alloc(size);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void open_video(AVCodecContext *codec_context,
|
static void open_video(AVCodecContext *codec_context,
|
||||||
WindowPixmap &window_pixmap, AVBufferRef **device_ctx,
|
WindowPixmap &window_pixmap, AVBufferRef **device_ctx,
|
||||||
|
Loading…
Reference in New Issue
Block a user