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 /cmdutils.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 'cmdutils.h')
-rw-r--r-- | cmdutils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdutils.h b/cmdutils.h index 3af4476d7f..2e9b604a97 100644 --- a/cmdutils.h +++ b/cmdutils.h @@ -498,7 +498,7 @@ int read_yesno(void); * @param filename file to read from * @param bufptr location where pointer to buffer is returned * @param size location where size of buffer is returned - * @return 0 in case of success, a negative value corresponding to an + * @return >= 0 in case of success, a negative value corresponding to an * AVERROR error code in case of failure. */ int cmdutils_read_file(const char *filename, char **bufptr, size_t *size); |