[FFmpeg-devel] [PATCH] avcodec/nvenc: use AVERROR_BUFFER_TOO_SMALL instead of ENOBUFS
Timo Rothenpieler
timo at rothenpieler.org
Sat Sep 24 21:41:26 EEST 2016
On 9/24/2016 8:31 PM, James Almer wrote:
> Should fix compilation with mingw32.
>
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> 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" },
forgot about that one. LGTM
More information about the ffmpeg-devel
mailing list