[MPlayer-users] mencoder summary info

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Tue Apr 25 19:42:51 CEST 2006


Hi,
On Tue, Apr 25, 2006 at 10:20:32AM -0700, Corey Hickey wrote:
> Yeah, looks like you're right. Please try the attached patch.


>  mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_VideoStreamResult,
> -    (float)(mux_v->size/mux_v->timer*8.0f/1000.0f), (int)(mux_v->size/mux_v->timer), (int)mux_v->size, (float)mux_v->timer, decoded_frameno);
> +    (float)(mux_v->size/mux_v->timer*8.0f/1000.0f), (int)(mux_v->size/mux_v->timer), (unsigned long long)mux_v->size, (float)mux_v->timer, decoded_frameno);
[...]
> +#define MSGTR_VideoStreamResult "\nVideo stream: %8.3f kbit/s  (%d B/s)  size: %llu bytes  %5.3f secs  %d frames\n"

This is non-portable and will break on MinGW.
Instead use
(uint64_t)mux_v->size
and
"\nVideo stream: %8.3f kbit/s  (%d B/s)  size: %"PRIu64" bytes  %5.3f secs %d frames\n"




More information about the MPlayer-users mailing list