[FFmpeg-devel] libavutils/logs.c: where to insert fopen();?
Måns Rullgård
mans
Fri Sep 10 19:36:01 CEST 2010
bombsiteunrested at gmail.com writes:
> Hi all.
> I wanted to override av_log's output, redirecting it to file (to save
> an optimizator's coin for my perl's script around ffmpeg),
>
> AVClass** parent= *(AVClass***)(((uint8_t*)ptr) +
> avc->parent_log_context_offset);
> if(parent && *parent){
> // WORKING
> FILE * xFile;
> xFile = fopen('yarr', 'w');
> fclose(xFile);
>
> fopen() leads to segmentation fault.
I suggest you go and learn the C programming language.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list