diff libmpcodecs/vf_crop.c @ 18004:bcd805923554

Part2 of several printf2mp_msg changes in patch from Otvos Attila oattila AT chello DOT hu with LOTS of modifications by me
author reynaldo
date Fri, 31 Mar 2006 00:15:47 +0000
parents 20aca9baf5d8
children 0b262e00bc99
line wrap: on
line diff
--- a/libmpcodecs/vf_crop.c	Thu Mar 30 23:47:03 2006 +0000
+++ b/libmpcodecs/vf_crop.c	Fri Mar 31 00:15:47 2006 +0000
@@ -4,6 +4,7 @@
 
 #include "config.h"
 #include "mp_msg.h"
+#include "help_mp.h"
 
 #include "img_format.h"
 #include "mp_image.h"
@@ -57,7 +58,7 @@
     // check:
     if(vf->priv->crop_w+vf->priv->crop_x>width ||
        vf->priv->crop_h+vf->priv->crop_y>height){
-	printf("crop: bad position/width/height - cropped area is out of the original!\n");
+	mp_msg(MSGT_VFILTER, MSGL_WARN, MSGTR_MPCODECS_CropBadPositionWidthHeight);
 	return 0;
     }
     if(!opt_screen_size_x && !opt_screen_size_y){