# HG changeset patch # User corey # Date 1146083043 0 # Node ID 21cafb27aa03d98e18269257134ed1581dac5ecd # Parent bcac2bf04b54888d9b50e6e5e481f9129758fa1a Make mencoder stream size printing use 64 bits. diff -r bcac2bf04b54 -r 21cafb27aa03 help/help_mp-en.h --- a/help/help_mp-en.h Wed Apr 26 20:22:36 2006 +0000 +++ b/help/help_mp-en.h Wed Apr 26 20:24:03 2006 +0000 @@ -266,8 +266,8 @@ "Your encode might be broken!\n" #define MSGTR_ErrorWritingFile "%s: Error writing file.\n" #define MSGTR_RecommendedVideoBitrate "Recommended video bitrate for %s CD: %d\n" -#define MSGTR_VideoStreamResult "\nVideo stream: %8.3f kbit/s (%d B/s) size: %d bytes %5.3f secs %d frames\n" -#define MSGTR_AudioStreamResult "\nAudio stream: %8.3f kbit/s (%d B/s) size: %d bytes %5.3f secs\n" +#define MSGTR_VideoStreamResult "\nVideo stream: %8.3f kbit/s (%d B/s) size: %"PRIu64" bytes %5.3f secs %d frames\n" +#define MSGTR_AudioStreamResult "\nAudio stream: %8.3f kbit/s (%d B/s) size: %"PRIu64" bytes %5.3f secs\n" #define MSGTR_OpenedStream "success: format: %d data: 0x%X - 0x%x\n" #define MSGTR_VCodecFramecopy "videocodec: framecopy (%dx%d %dbpp fourcc=%x)\n" #define MSGTR_ACodecFramecopy "audiocodec: framecopy (format=%x chans=%d rate=%d bits=%d B/s=%d sample-%d)\n" diff -r bcac2bf04b54 -r 21cafb27aa03 mencoder.c --- a/mencoder.c Wed Apr 26 20:22:36 2006 +0000 +++ b/mencoder.c Wed Apr 26 20:24:03 2006 +0000 @@ -1572,10 +1572,10 @@ } 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), (uint64_t)mux_v->size, (float)mux_v->timer, decoded_frameno); if(sh_audio) mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_AudioStreamResult, - (float)(mux_a->size/mux_a->timer*8.0f/1000.0f), (int)(mux_a->size/mux_a->timer), (int)mux_a->size, (float)mux_a->timer); + (float)(mux_a->size/mux_a->timer*8.0f/1000.0f), (int)(mux_a->size/mux_a->timer), (uint64_t)mux_a->size, (float)mux_a->timer); if(sh_audio){ uninit_audio(sh_audio);sh_audio=NULL; } if(sh_video){ uninit_video(sh_video);sh_video=NULL; }