mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
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:

committed by
Guillaume Roguez

parent
c2c6ddc002
commit
38155c0880
@ -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_);
|
||||
|
Reference in New Issue
Block a user