A quick look at your code, you are opening up the encoder each time you write to disk:
png_encoder_codec = avcodec_find_encoder_by_name ("png");
Do it just once, like at startup time, and use encoding routines on this
png_encoder_codec later.
Hope this helps
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
