> --- a/avtools/avconv.c
> +++ b/avtools/avconv.c
> @@ -2553,9 +2553,9 @@ static int seek_to_start(InputFile *ifile, 
> AVFormatContext *is)
>                  continue;
>          } else {
>              if (ist->framerate.num) {
> -                duration = av_rescale_q(1, ist->framerate, 
> ist->st->time_base);
> +                duration = av_rescale_q(1, av_inv_q(ist->framerate), 
> ist->st->time_base);
I think it should rather be:
 duration = FFMAX(av_rescale_q(1, av_inv_q(ist->framerate),
ist->st->time_base), 1);
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to