[Ffmpeg-devel] av_log

Mike Melanson mike
Tue Mar 14 21:07:22 CET 2006


Marcel Wolf wrote:
> Hello All
> 
> I am trying to make FFMPEG work on an AMD Alchemy MIPS processor, which has
> hardware acceleration. To help me understand the code I wanted to use
> printfs but I get an error. A conflict with the av_log. How do I use the
> av_log? I don't understand what switches I must use to enable it? Or can I
> turn it off and use printfs? 

	You hit against our printf() paranoia measure. 2 ways around it:

1) Official solution: use av_log() instead of printf():
   printf ("Hey: %d\n", 610);
   av_log (NULL, AV_LOG_INFO, "Hey: %d\n", 610);

2) Unofficial hack: "#undef printf" near the top of the source file (but 
after lavc #includes) in which you wish to enable printf(). Just don't 
submit code back to us in that form; use the official solution.

	Hope this helps...
-- 
	-Mike Melanson




More information about the ffmpeg-devel mailing list