[FFmpeg-user] make text file and user fprintf to write to file

Chau Pham chaupv79 at hotmail.com
Tue Aug 28 07:24:40 CEST 2012

Hi Everydoby, I am trying to create a text file and write something in it. /n for example <br> static int write_number(char *filename){int number = 1;FILE *f = fopen(filename, "+a");fprintf(f, "%d\n", number) return 0;}    I put this code into ffmpeg/libavformat/img2enc.c  then compile, ffmpeg annouce an error: "error: implicit declaration of function 'please_use_av_log_instead_of_fprintf" but I know av_log function is to write log, not to write into a file.  How can I use fprintf inside ffmpeg/libavformat/img2enc.c file.   Thank You,Chau Pham.    		 	   		  

More information about the ffmpeg-user mailing list