[FFmpeg-devel] [PATCH 1/2] lavfi/trim: check for right default value

Michael Niedermayer michaelni at gmx.at
Mon Aug 12 13:31:39 CEST 2013


On Mon, Aug 12, 2013 at 11:01:37AM +0000, Paul B Mahol wrote:
> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> ---
>  libavfilter/trim.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavfilter/trim.c b/libavfilter/trim.c
> index 9109e77..e9f2b20 100644
> --- a/libavfilter/trim.c
> +++ b/libavfilter/trim.c
> @@ -94,7 +94,7 @@ static int config_input(AVFilterLink *inlink)
>          s->start_time = s->start_time_dbl * 1e6;
>      if (s->end_time_dbl != DBL_MAX)
>          s->end_time = s->end_time_dbl * 1e6;
> -    if (s->duration_dbl != DBL_MAX)
> +    if (s->duration_dbl != 0)
>          s->duration = s->duration_dbl * 1e6;
>  
>      if (s->start_time != INT64_MAX) {
> -- 
> 1.7.11.2

LGTM

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you think the mosad wants you dead since a long time then you are either
wrong or dead since a long time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130812/39ef9025/attachment.asc>


More information about the ffmpeg-devel mailing list