diff options
author | James Almer <jamrial@gmail.com> | 2016-09-24 15:31:00 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-09-24 15:48:30 -0300 |
commit | dc48248ea8e6f7e3ab0d4e932046395c061ce602 (patch) | |
tree | 788609d56b3fa6995abd685a76f0c93fec0ec2a3 /libavcodec | |
parent | 1e34584814071ceb496d01dc7fab515105a8755c (diff) | |
download | ffmpeg-dc48248ea8e6f7e3ab0d4e932046395c061ce602.tar.gz |
avcodec/nvenc: use AVERROR_BUFFER_TOO_SMALL instead of ENOBUFS
Should fix compilation with mingw32
Reviewed-by: Timo Rothenpieler <timo@rothenpieler.org>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/nvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index e3edd74ab7..fc5253adf8 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -114,7 +114,7 @@ static const struct { { NV_ENC_ERR_ENCODER_NOT_INITIALIZED, AVERROR(EINVAL), "encoder not initialized" }, { NV_ENC_ERR_UNSUPPORTED_PARAM, AVERROR(ENOSYS), "unsupported param" }, { NV_ENC_ERR_LOCK_BUSY, AVERROR(EAGAIN), "lock busy" }, - { NV_ENC_ERR_NOT_ENOUGH_BUFFER, AVERROR(ENOBUFS), "not enough buffer" }, + { NV_ENC_ERR_NOT_ENOUGH_BUFFER, AVERROR_BUFFER_TOO_SMALL, "not enough buffer"}, { NV_ENC_ERR_INVALID_VERSION, AVERROR(EINVAL), "invalid version" }, { NV_ENC_ERR_MAP_FAILED, AVERROR(EIO), "map failed" }, { NV_ENC_ERR_NEED_MORE_INPUT, AVERROR(EAGAIN), "need more input" }, |