From 633004c82032ff1aefd76d6ff54fe92a4741980b Mon Sep 17 00:00:00 2001 From: Greg V Date: Sat, 21 Apr 2018 16:30:14 +0300 Subject: [PATCH] Fix build with ffmpeg 4.0 --- rpcs3/Emu/Cell/Modules/cellAdec.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellAdec.cpp b/rpcs3/Emu/Cell/Modules/cellAdec.cpp index 7a353405f0..6fd028093b 100644 --- a/rpcs3/Emu/Cell/Modules/cellAdec.cpp +++ b/rpcs3/Emu/Cell/Modules/cellAdec.cpp @@ -8,6 +8,9 @@ extern "C" { #include "libavcodec/avcodec.h" #include "libavformat/avformat.h" +#ifndef AV_INPUT_BUFFER_PADDING_SIZE +#define AV_INPUT_BUFFER_PADDING_SIZE FF_INPUT_BUFFER_PADDING_SIZE +#endif } #include "cellPamf.h" @@ -229,8 +232,8 @@ public: if (size) { - data = (u8*)av_calloc(1, size + FF_INPUT_BUFFER_PADDING_SIZE); - this->size = size + FF_INPUT_BUFFER_PADDING_SIZE; + data = (u8*)av_calloc(1, size + AV_INPUT_BUFFER_PADDING_SIZE); + this->size = size + AV_INPUT_BUFFER_PADDING_SIZE; } else {