[Ffmpeg-devel] av_log

Michel Bardiaux mbardiaux
Thu Aug 11 12:32:12 CEST 2005

Thomas Koninckx wrote:
> Hi,
> Is there an easy way to extract the last av_log message from within my
> code? 
> After seeking in some streams I get log_messages "releasing zombie
> picture", which can be overcome by decoding a few more images. It
> however would be nice if I could check after a seek the last log
> message, and take appropriate action if necessary instead of always
> doing the additional decodes. Thanks.
> Thomas
Override the default log function with your own (av_log_set_callback) 
that would parse the message, set a global (yuck) or a field in 
codecContext->opaque, then call the default logger. This is exactly why 
av_log is replacing fprintf(stderr).

Michel Bardiaux
R&D Director
MediaXim S.A.  Bd. du Souverain, 191  B-1160 Bruxelles
Tel : +32 2 790.29.41

More information about the ffmpeg-devel mailing list