[MPlayer-dev-eng] [PATCH] MEncoder: print more precise FPS

Guillaume POIRIER poirierg at gmail.com
Thu Nov 17 20:18:49 CET 2005


Hi,

On 11/17/05, Oded Shimon <ods15 at ods15.dyndns.org> wrote:
> On Thu, Nov 17, 2005 at 03:25:45PM +0100, Guillaume Poirier wrote:
[..]
> > -     mp_msg(MSGT_AVSYNC,MSGL_STATUS,"Pos:%6.1fs %6df (%2d%%) %3dfps Trem:%4dmin %3dmb  A-V:%5.3f [%d:%d]\r",
> > +     mp_msg(MSGT_AVSYNC,MSGL_STATUS,"Pos:%6.1fs %6df (%2d%%) %5.3ffps Trem:%4dmin %3dmb  A-V:%5.3f [%d:%d]\r",
> >           mux_v->timer, decoded_frameno, (int)(p*100),
> > -         (t>1) ? (int)(decoded_frameno/t+0.5) : 0,
> > +         (t>1) ? (float)(decoded_frameno/t+0.5) : 0,
>
> no +0.5, that as only there for integer rounding.

Applied a modified version.

Guillaume
--
Remember, if you ever need a helping hand, it's
at the end of your arm, as you get older, remember
you have another hand:
The first is to help yourself,
the second is to help others.
-- Audrey Hepburn




More information about the MPlayer-dev-eng mailing list