diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-09-15 15:25:09 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-19 16:42:57 +0200 |
commit | d5ec8ba7f2cb83a166da196c377398b7954c5d6c (patch) | |
tree | 8c610840757a2274259a65bfe58a421d41e1311c /libavfilter/lavfutils.h | |
parent | a6388616e826437acd749e81671b386e0609f549 (diff) | |
download | ffmpeg-d5ec8ba7f2cb83a166da196c377398b7954c5d6c.tar.gz |
Do not leave positive values undefined when negative are defined as error
Define positive return values as non errors and leave further meaning undefined
This allows future extensions to use these values
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/lavfutils.h')
-rw-r--r-- | libavfilter/lavfutils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/lavfutils.h b/libavfilter/lavfutils.h index a310e83384..2d5308f79c 100644 --- a/libavfilter/lavfutils.h +++ b/libavfilter/lavfutils.h @@ -34,7 +34,7 @@ * @param pix_fmt pointer to the pixel format of the loaded image * @param filename the name of the image file to load * @param log_ctx log context - * @return 0 in case of success, a negative error code otherwise. + * @return >= 0 in case of success, a negative error code otherwise. */ int ff_load_image(uint8_t *data[4], int linesize[4], int *w, int *h, enum AVPixelFormat *pix_fmt, |