diff options
author | Michael Niedermayer <[email protected]> | 2013-09-15 15:25:09 +0200 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2013-10-19 16:42:57 +0200 |
commit | d5ec8ba7f2cb83a166da196c377398b7954c5d6c (patch) | |
tree | 8c610840757a2274259a65bfe58a421d41e1311c /libavutil/parseutils.h | |
parent | a6388616e826437acd749e81671b386e0609f549 (diff) |
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 <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'libavutil/parseutils.h')
-rw-r--r-- | libavutil/parseutils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/parseutils.h b/libavutil/parseutils.h index 3eb35fc050..dcfb7056d6 100644 --- a/libavutil/parseutils.h +++ b/libavutil/parseutils.h @@ -127,7 +127,7 @@ int av_parse_color(uint8_t *rgba_color, const char *color_string, int slen, * @endcode * @param duration flag which tells how to interpret timestr, if not * zero timestr is interpreted as a duration, otherwise as a date - * @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 code otherwise */ int av_parse_time(int64_t *timeval, const char *timestr, int duration); |