diff options
author | Pan Bian <bianpan2016@163.com> | 2017-11-27 09:52:50 +0800 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2017-11-29 10:42:58 +0100 |
commit | eb69e7bed80a1c8afee9acf9f8daff6be5e9ea62 (patch) | |
tree | 4cd15b0ac02604668e4069e4dc16ee2418e182ff /libavformat/mpsubdec.c | |
parent | 815e34b5b4ed8fbb6c9d7b7b042ae49848bc170c (diff) | |
download | ffmpeg-eb69e7bed80a1c8afee9acf9f8daff6be5e9ea62.tar.gz |
avcodec/nvenc: set correct error code
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 <bianpan2016@163.com>
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavformat/mpsubdec.c')
0 files changed, 0 insertions, 0 deletions