diff divx4_vbr.c @ 13699:11b249ef87b0

printf --> mp_msg by the Wanderer <inverseparadox at comcast dot net>
author diego
date Wed, 20 Oct 2004 01:32:56 +0000
parents 772d6d27fd66
children f580a7755ac5
line wrap: on
line diff
--- a/divx4_vbr.c	Wed Oct 20 01:25:27 2004 +0000
+++ b/divx4_vbr.c	Wed Oct 20 01:32:56 2004 +0000
@@ -23,6 +23,9 @@
 
 #include "divx4_vbr.h"
 
+#include "mp_msg.h"
+#include "help_mp.h"
+
 //#include "transcode.h"
 
 #define FALSE 0
@@ -201,7 +204,7 @@
 		
 		m_vFrames = (entry*)malloc(iNumFrames*sizeof(entry));
 		if (!m_vFrames) 
-		{	printf("out of memory");
+		{	mp_msg(MSGT_FIXME, MSGL_FIXME,MSGTR_OutOfMemory);
 			return -2; //TC_EXPORT_ERROR;
 		}
 			
@@ -228,9 +231,7 @@
 	if(desired_bits<=non_text_bits)
 	{
 /*		char s[200];*/
-		printf("Specified bitrate is too low for this clip.\n"
-			"Minimum possible bitrate for the clip is %.0f kbps. Overriding\n"
-			"user-specified value.\n",
+		mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_OverridingTooLowBitrate,
 				(float)(non_text_bits*framerate/(int64_t)iNumFrames));
 
 		desired_bits=non_text_bits*3/2;