avformat/avio: support io statistic