[MPlayer-users] mencoder summary info

Corey Hickey bugfood-ml at fatooh.org
Tue Apr 25 22:23:17 CEST 2006


Reimar Döffinger wrote:
> 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"

Thanks.

I'll send an updated version to -dev-eng in a minute.

-Corey




More information about the MPlayer-users mailing list