encoder: update FF_MIN_BUFFER_SIZE ffmpeg macro

AV_INPUT_BUFFER_MIN_SIZE is the new name for FF_MIN_BUFFER_SIZE, which is
not available anymore in new releases.

Change-Id: I79abb3a8192d8572323f705eecc44edc974026f8
Reviewed-by: Philippe Gorley <philippe.gorley@savoirfairelinux.com>
This commit is contained in:
Adrien Béraud
2017-11-28 16:04:21 +01:00
committed by Guillaume Roguez
parent c2c6ddc002
commit 38155c0880

View File

@ -232,7 +232,7 @@ MediaEncoder::openOutput(const char *filename,
const int height = encoderCtx_->height;
const int format = libav_utils::ring_pixel_format((int)encoderCtx_->pix_fmt);
scaledFrameBufferSize_ = videoFrameSize(format, width, height);
if (scaledFrameBufferSize_ <= FF_MIN_BUFFER_SIZE)
if (scaledFrameBufferSize_ <= AV_INPUT_BUFFER_MIN_SIZE)
throw MediaEncoderException("buffer too small");
scaledFrameBuffer_.reserve(scaledFrameBufferSize_);