mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 18:10:13 +01:00
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>
This commit is contained in:
@@ -224,7 +224,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
* A graph is considered valid if all its input and output pads are
|
||||
* connected.
|
||||
*
|
||||
* @return 0 in case of success, a negative value otherwise
|
||||
* @return >= 0 in case of success, a negative value otherwise
|
||||
*/
|
||||
static int graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx)
|
||||
{
|
||||
@@ -262,7 +262,7 @@ static int graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx)
|
||||
/**
|
||||
* Configure all the links of graphctx.
|
||||
*
|
||||
* @return 0 in case of success, a negative value otherwise
|
||||
* @return >= 0 in case of success, a negative value otherwise
|
||||
*/
|
||||
static int graph_config_links(AVFilterGraph *graph, AVClass *log_ctx)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user