Re: [FFmpeg-devel] avcodec/nvenc: set correct error code

2017-11-27 Thread Timo Rothenpieler
lgtm smime.p7s Description: S/MIME Cryptographic Signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

[FFmpeg-devel] avcodec/nvenc: set correct error code

2017-11-26 Thread Pan Bian
In function process_output_surface(), the return value is 0 on the path that av_mallocz() returns a NULL pointer. 0 indicates success, which deviates from the fact. Return "AVERROR(ENOMEM)" instead of "0". Signed-off-by: Pan Bian --- libavcodec/nvenc.c | 4 +++- 1 file changed, 3 insertions(+),