[Ffmpeg-devel] av_log

Thomas Koninckx tkoninck
Fri Aug 12 15:08:11 CEST 2005


On Thu, 2005-08-11 at 12:32 +0200, Michel Bardiaux wrote:
> 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).
Thanks! It was easier than expected.

Thomas
> 
> HaND,





More information about the ffmpeg-devel mailing list