changeset 28518:bc49856e5024

Replace fprintf call by mp_msg, fixes the warning: In file included from libmpcodecs/vf_fspp.c:58: libmpcodecs/mp_image.h: In function 'mp_image_setfmt': libmpcodecs/mp_image.h:207: warning: implicit declaration of function 'please_use_av_log_instead_of_fprintf'
author diego
date Sat, 14 Feb 2009 11:43:14 +0000
parents e9174807756c
children b1f68e0d1a39
files libmpcodecs/mp_image.h
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/mp_image.h	Sat Feb 14 08:37:29 2009 +0000
+++ b/libmpcodecs/mp_image.h	Sat Feb 14 11:43:14 2009 +0000
@@ -4,6 +4,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include "mp_msg.h"
 
 //--------- codec's requirements (filled by the codec/vf) ---------
 
@@ -204,7 +205,7 @@
 	mpi->chroma_y_shift=1;
 	return;
     }
-    fprintf(stderr,"mp_image: unknown out_fmt: 0x%X\n",out_fmt);
+    mp_msg(MSGT_DECVIDEO,MSGL_WARN,"mp_image: unknown out_fmt: 0x%X\n",out_fmt);
     mpi->bpp=0;
 }
 #endif