Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build with ffmpeg 4.0 #4471

Merged
merged 1 commit into from
Apr 21, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions rpcs3/Emu/Cell/Modules/cellAdec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -229,8 +232,8 @@ class AudioDecoder : public ppu_thread

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
{
Expand Down