On Thu, 05 Jul 2012 17:23:37 -0400, Justin Ruggles <[email protected]> wrote: > On 07/05/2012 03:57 PM, Anton Khirnov wrote: > > --- > > libavfilter/af_amix.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c > > index 8ceb179..a8ec8a1 100644 > > --- a/libavfilter/af_amix.c > > +++ b/libavfilter/af_amix.c > > @@ -360,7 +360,7 @@ static int request_samples(AVFilterContext *ctx, int > > min_samples) > > s->input_state[i] = INPUT_OFF; > > continue; > > } > > - } else if (ret) > > + } else if (ret < 0) > > return ret; > > } > > return 0; > > @@ -422,7 +422,7 @@ static int request_frame(AVFilterLink *outlink) > > return AVERROR_EOF; > > else > > return AVERROR(EAGAIN); > > - } else if (ret) > > + } else if (ret < 0) > > return ret; > > } > > av_assert0(s->frame_list->nb_frames > 0); > > ok. > > what do return codes > 0 mean? >
Nothing specific in this case, it just saves us extra work with normalizing return codes from functions where success is > 0. -- Anton Khirnov _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
