[FFmpeg-cvslog] avcodec/nvenc: use AVERROR_BUFFER_TOO_SMALL instead of ENOBUFS
James Almer
git at videolan.org
Sat Sep 24 21:49:50 EEST 2016
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Sep 24 15:31:00 2016 -0300| [dc48248ea8e6f7e3ab0d4e932046395c061ce602] | committer: James Almer
avcodec/nvenc: use AVERROR_BUFFER_TOO_SMALL instead of ENOBUFS
Should fix compilation with mingw32
Reviewed-by: Timo Rothenpieler <timo at rothenpieler.org>
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dc48248ea8e6f7e3ab0d4e932046395c061ce602
---
libavcodec/nvenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index e3edd74..fc5253a 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" },
More information about the ffmpeg-cvslog
mailing list